In this tutorial, I am going to discuss a very interesting problem to determine if a number is happy or not. Given a number n,…
In this problem, We have to design a data structure that supports Insert, Delete, and GetRandom in average O(1) time. OR Design a data structure…
In this tutorial, I am going to discuss a very famous interview problem. How to count the number of islands. Given a 2d grid map…