[Go] How to Sleep in Golang When you want to pause or delay program execution in Go, you can use the Sleep function from the time package. In this post, we will learn various ways to use sleep i...
[Go] How to Sleep in Golang
Elasticsearch Query Commands for Querying and Deleting Data by Time Range
Elasticsearch Query Commands for Querying and Deleting Data by Time Range There are cases where you need to query or delete data within a specific time range in Elasticsearch. In this post, we w...
CKA (Certified Kubernetes Administrator) Exam Review and Tips
CKA (Certified Kubernetes Administrator) Exam Review and Tips Table of Contents What is CKA? Preparation Period Study Method Exam Environment and Precautions Exam Procedure Unexpect...
[LeetCode Solution] 189. Rotate Array
Problem Description Rotate Array Rotate the elements of a list by k. Solution Approach For the input list [1,2,3,4,5,6,7] and k=3, a simple approach is to iterate through the list and shift each ...
[LeetCode Solution] 122. Best Time to Buy and Sell Stock II
Problem Description Best Time to Buy and Sell Stock II Calculate the maximum profit that can be obtained by buying and selling stocks multiple times. Unlike Best Time to Buy and Sell Stock, this p...
[LeetCode Solution] 121. Best Time to Buy and Sell Stock
Problem Description Best Time to Buy and Sell Stock Calculate the maximum profit that can be obtained by buying and selling stocks once. Solution Approach To find the maximum profit when buying a...
[LeetCode Solution] 88. Merge Sorted Array
Problem Description LeetCode 88. Merge Sorted Array Given two ascending order lists, merge them into a single sorted list. However, there is a condition: the sorting must be done in-place on the n...
[LeetCode Solution] 80. Remove Duplicates from Sorted Array II
Problem Description LeetCode 80. Remove Duplicates from Sorted Array II Remove duplicates from the array, keeping at most two occurrences of each element. Solution Approach: Two Pointer I used tw...
[LeetCode Solution] 27. Remove Element
Problem Description LeetCode 27. Remove Element Algorithm to remove the specified value (val) from the list and determine the remaining number of elements. Solution Approach 1. 1) Traverse nums a...
[LeetCode Solution] 26. Remove Duplicates from Sorted Array
Problem Description LeetCode 26. Remove Duplicates from Sorted Array Algorithm to remove duplicates from a sorted array and return the value of the remaining elements. Solution Approach: Two Poin...