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…
Category: Queue
How to implement a queue using two stacks. In this tutorial, I am going to discuss how to implement a first in first out (FIFO)…
MCQ on stack and queue data structure. Both Stack and Queue data structure is very important in computer science. In this tutorial, you are going to learn…