[Go] Golang에서 sleep 하는 방법 Go 언어에서 프로그램 실행을 일시 중지하거나 지연시키고 싶을 때 time 패키지의 Sleep 함수를 사용할 수 있습니다. 이번 포스트에서는 Go에서 sleep을 사용하는 다양한 방법을 알아보겠습니다. 기본 사용법 Go에서 sleep을 사용하려면 time 패키지를 import하고 time.Slee...
[Go] Golang에서 sleep 하는 방법
Elasticsearch 특정 시간 구간 데이터 조회, 삭제하는 쿼리 명령어
Elasticsearch 특정 시간 구간 데이터 조회, 삭제하는 쿼리 명령어 Elasticsearch에서 특정 시간 구간의 데이터를 조회하거나 삭제해야 하는 경우가 있습니다. 이번 포스트에서는 range 쿼리를 활용하여 시간 기반으로 데이터를 조회하고 삭제하는 방법을 알아보겠습니다. 특정 시간 구간 데이터 삭제하기 인덱스에서 특정 시간 기준으...
CKA(Certified Kubernetes Administrator) 합격 후기 및 팁
CKA(Certified Kubernetes Administrator) 합격 후기 및 팁 목차 CKA란? 준비 기간 공부 방법 시험 환경 및 주의사항 시험 진행 절차 시험 중 돌발상황 요약 및 팁 CKA란? CKA(Certified Kubernetes Administrator)는 Kubernetes의 관리 및 운...
[Leet Code풀이] 189. Rotate Array
문제 설명 https://leetcode.com/problems/rotate-array/description/?envType=study-plan-v2&envId=top-interview-150 리스트를 k만큼 회전시키는 문제 풀이 접근 방법. [1,2,3,4,5,6,7]에서 k=3인 경우 단순히 루프를 돌면서 i를 k만큼 옮기면서 이동시키면...
[Leet Code풀이] 122. Best Time to Buy and Sell Stock II
문제 설명 https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/description/?envType=study-plan-v2&envId=top-interview-150 주식에서 샀다 팔았다 해서 최고 수익이 얼마나 날 수 있는지를 계산한다. Best Time to Buy and ...
[Leet Code풀이] 121. Best Time to Buy and Sell Stock
문제 설명 https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/?envType=study-plan-v2&envId=top-interview-150 주식에서 한번 샀다 팔았다 해서 최고 수익이 얼마나 날 수 있는지를 계산한다. 풀이 접근 방법. 한번 샀다 팔았을때...
[Leet Code풀이] 88. Merge Sorted Array
문제 설명 https://leetcode.com/problems/merge-sorted-array/description/?envType=study-plan-v2&envId=top-interview-150 오름차순으로 주어진 두개의 리스트를 오름차순으로 정렬하는 문제이다. 다만 조건이 있는데, nums1 배열에 in-place방식으로 정렬을 해...
[Leet Code풀이] 80. Remove Duplicates from Sorted Array II
문제 설명 https://leetcode.com/problems/remove-duplicates-from-sorted-array-ii/description/?envType=study-plan-v2&envId=top-interview-150 배열에서 중복은 최대 2개만 남기고 제거하는 문제 풀이 접근 방법. Two pointer two poi...
[Leet Code풀이] 27. Remove Element
문제 설명 https://leetcode.com/problems/remove-element/description/?envType=study-plan-v2&envId=top-interview-150 val로 주어진 값을 리스트에서 제거한 후, 해당 리스트에 요소가 얼마나 남았는지를 알아내는 알고리즘 풀이 접근 방법 1. 1) val이 num...
[Leet Code풀이] 26. Remove Duplicates from Sorted Array
문제 설명 https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/?envType=study-plan-v2&envId=top-interview-150 배열에서 중복값을 제거한후 남은 원소의 값을 리턴하는 문제 풀이 접근 방법. Two pointer two p...