Skip to content

Tag Archives: interview-preparation

Given an array A[] consisting of N intervals and a target interval X, the task is to find the minimum number of intervals from the… Read More
Given the root of a Complete Binary Tree consisting of N nodes, the task is to find the total number of nodes in the given… Read More
As the placement season is back so are we to help you ace the interview. We have selected some most commonly asked and must do… Read More
Given an array arr[] consisting of N positive integers and a  positive integer K such that there are N countries, each country has arr[i] players,… Read More
Three characters {#, *, . } represents a constellation of stars and galaxies in space. Each galaxy is demarcated by # characters. There can be… Read More
Given a positive integer N, the task is to find the two smallest integers A and B such that the Bitwise XOR of A and… Read More
Given a string S consisting of N digits, the task is to find the number of distinct Prime Numbers that can be formed using the… Read More
Given an array A[] consisting of N integers and two integers X and Y, the task is to find the maximum sum of the averages… Read More
Given an array arr[] consisting of N integers and an integer R, denoting the cutoff rank, the task is to count the number of array… Read More
Puzzle:In the new post-apocalyptic world, the world queen is desperately concerned about the birth rate. Therefore, she decrees that all families should ensure that they… Read More
Given two positive integers X and Y and two numeric strings S and P of length N and 2 respectively, the task is to find… Read More
Given a positive integer N representing the count of players playing the game. The game is played between two teams such that each team consists… Read More
Given an integer, instances, and an array, arr[] of size N representing the average utilization percentage of the computing system at each second, the task… Read More
Puzzle: A lady makes a purchase of Rs 200/- in a store. The shopkeeper sells the goods with zero profit. He receives a Rs 1000/-… Read More
Design a special dynamic Stack using an array that supports all the stack operations such as push(), pop(), peek(), isEmpty(), and getMin() operations in constant… Read More