Skip to content

Category Archives: Queue

Round 1 (Coding round): 1) Range [L, R] is given. Need to find what is the maximum repeating digit in prime numbers between L and… Read More
Given an expression with only ‘}’ and ‘{‘. The expression may not be balanced. Find minimum number of bracket reversals to make the expression balanced.Examples: … Read More
Recently Microsoft visited our campus for recruitment and following is my interview experience. MCQ Round- 15 MCQ questions from C , C++ , java (1… Read More
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… 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 https://www.geeksforgeeks.org/, one… 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
The top view of a binary tree is the set of nodes visible when the tree is viewed from the top. Given a binary tree,… 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: Below… Read More
Introduction : One efficient way to implement k queues in a single array is to use a technique called “circular array implementation of k queues.”… Read More
Given are N ropes of different lengths, the task is to connect these ropes into one rope with minimum cost, such that the cost to… 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