Skip to content

Category Archives: Queue

Given a string consisting of opening and closing parenthesis, find the length of the longest valid parenthesis substring. Examples:  Input : ((() Output : 2… Read More
Recently walmart labs came to our campus for campus recruitment. Here is my interview experience: Round 1 (MCQ + Coding Questions) This round was conducted… Read More
First round (Written) : 1. 4 Android questions: a) What’s Recyclerview? Describe all components of Recyclerview with all callbacks and the benefits of Recyclerview. b)… Read More
Walmart Labs Interview Experience – On campus 1st round (Online Test) It was an online test of 90 minutes and was conducted on Hackerearth. It… Read More
Given a matrix of dimension m*n where each cell in the matrix can have values 0, 1 or 2 which has the following meaning:   0:… Read More
Written MCQ There were 20 multiple choice questions to be done in 30 minutes time and most of the technical questions were from geeksquiz ,… Read More
1st Round : (2 hrs) 1. Implement LRU Cache, 2. Implement your own Blocking Queue. 3. Questions on Collections , a. How AtomicInteger works b.… Read More
Top view of a binary tree is the set of nodes visible when the tree is viewed from the top. Given a binary tree, print… Read More
Deque or Double Ended Queue is a generalized version of Queue data structure that allows insert and delete at both ends. Operations on Deque: Mainly… Read More
We have discussed efficient implementation of k stack in an array. In this post, same for queue is discussed. Following is the detailed problem statement.… Read More
There are given n ropes of different lengths, we need to connect these ropes into one rope. The cost to connect two ropes is equal… Read More
Given a number n, write a function that generates and prints all binary numbers with decimal values from 1 to n.  Examples:  Input: n =… Read More
Priority Queue is an abstract data type that is similar to a queue, and every element has some priority value associated with it. The priority… Read More
In the previous post, we introduced Queue and discussed array implementation. In this post, linked list implementation is discussed. The following two main operations must… Read More
Similar to Stack, Queue is a linear data structure that follows a particular order in which the operations are performed for storing data. The order is… Read More

Start Your Coding Journey Now!