Tag Archives: interview-preparation

Given an array A[] consisting of N distinct integers and another array B[] consisting of M integers, the task is to find the minimum number… Read More
Topic : Google Facebook Microsoft Adobe Oracle Amazon D E Shaw MAQ Software Directi Yahoo Accolite Walmart Labs Samsung Paytm Ola Cabs Flipkart SAP Labs… Read More
Given an array of strings Q[], consisting of queries of the following types: “WRITE X”: Write a character X into the document. “UNDO”: Erases the… Read More
Given a matrix m[][] of dimensions N × M and an integer K, calculate XOR(i, j) which is equal to the Bitwise Xor of all… Read More
Given an array arr[] of N distinct integers and a list of arrays pieces[] of distinct integers, the task is to check if the given… Read More
Given a binary string S, the task is to find the minimum number of operations of flipping at most two non-adjacent characters from the binary… Read More
John is a geologist, and he needs to count rock samples in order to send it to a chemical laboratory. He has a problem. The… Read More
Given an array arr[] consisting of N positive integers, the task is to find the maximum product of subarray sum with the minimum element of… Read More
Given a binary string str, the task is to remove the minimum number of characters from the given binary string such that the characters in… Read More
Given an array arr[] consisting of N integers in non-increasing order, representing citations, the task is to find the H-index. H-Index is usually assigned to… Read More
Problem Description Dr. Vishnu is opening a new world-class hospital in a small town designed to be the first preference of the patients in the… Read More
Given an array, initially consisting of 0 as the only element present and Q operations of the following two types: Add(X): Insert X into the… Read More
Given a two dimensional array arr[][] of dimensions N * 2 which contains the starting and ending time for N meetings on a given day.… Read More
Given a matrix bricks[][] denoting the start and end coordinates of a brick’s breadth from an arrangement of rectangular bricks in a two-dimensional space. A… Read More
Given an N-ary tree and an integer K, the task is to print the Kth ancestors of all the nodes of the tree in level… Read More