## Print missing elements that lie in range 0 – 99

Given an array of integers print the missing elements that lie in range 0-99. If there are more than one missing, collate them, otherwise just… Read More »

Given an array of integers print the missing elements that lie in range 0-99. If there are more than one missing, collate them, otherwise just… 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 »

Given a Binary Search Tree (BST) and a positive integer k, find the k’th largest element in the Binary Search Tree. For example, in the… Read More »

There are 25 horses among which you need to find out the fastest 3 horses. You can conduct race among at most 5 to find… Read More »

Consider lines of slope -1 passing between nodes (dotted lines in below diagram). Diagonal sum in a binary tree is sum of all node’s data… Read More »

Given a Binary Tree, we need to print the bottom view from left to right. A node x is there in output if x is… Read More »

Accolite came to our campus for recruitment. First Round Written Test: 30 MCQs in which question related to DS Networking OS Unix commands DBMS. Questions… Read More »

Given an array and a number k where k is smaller than size of array, we need to find the k’th smallest element in the… Read More »

Given an array of jobs where every job has a deadline and associated profit if the job is finished before the deadline. It is also… Read More »

Given arrival and departure times of all trains that reach a railway station, the task is to find the minimum number of platforms required for… Read More »

Serialization is to store tree in a file so that it can be later restored. The structure of tree must be maintained. Deserialization is reading… Read More »

Given two strings str1 and str2, find if str1 is a subsequence of str2. A subsequence is a sequence that can be derived from another… 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 »

Accolite came to our campus for recruitment. First Round Written Test: 20 MCQs in which general CS basics question were asked. And one subjective paper… Read More »

There are n stairs, a person standing at the bottom wants to reach the top. The person can climb either 1 stair or 2 stairs… Read More »