Skip to content

Category Archives: Queue

The Queue interface present in the java.util package and extends the Collection interface is used to hold the elements about to be processed in FIFO(First… Read More
Given two Binary Trees, write a function that returns true if two trees are mirror of each other, else false. For example, the function should… Read More
1. Written Round : 1) 30 Aptitude questions(30 min). 2) 2-Coding questions(30 min). 2-a) Write an algorithm for dutch national flag problem 2-b) Write an… Read More
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: Attention reader! Don’t stop learning now. Get… 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