#leetcode
Read more stories on Hashnode
Articles with this tag
In this article, let's tackle the leetcode Design Hit Counter. The problem is to design a hit counter, which counts the number of hits received in the...
In this article, let's see how to solve the leetcode candy-crush problem. Candy crush is a popular game. The rules are very simple, just crush candies...
Say we have an array and we want to get one element randomly. Instead of getting the element with equal probability, we want to specify the...
Let's first see a leetcode problem Find Greatest Common Divisor of Array. This problem is pretty easy. What we may do is to just calculate the max and...
Inorder Traversal The problem is to do an inorder traversal. This is a pretty standard operation for tree structure. The most simple solution is to...
There is a leetcode problem Pow(x, n). Basically, it is a plain power function. We can follow the description and multiple number x with n...