# Tag Archives: interview-preparation

Given an integer N denoting the number of flights and array bookings[] with each row of the form {a, b, K} denoting that there are… Read More
Given an integer N, the task is to find the path from the Nth node to the root of a Binary Tree of the following… Read More
Given an array arr[] of size N and a positive integer K, the task is to find the smallest positive integer such that the sum… Read More
Given a binary string S of length N, the task is to find the longest substring consisting of ‘1’s only present in the string after… Read More
Given an integer N, the task is to partition the squares of first N( always a multiple of 8 ) natural numbers into two sets… Read More
There are some colored rabbits in a forest. Given an array arr[] of size N, such that arr[i] denotes the number of rabbits having same… Read More
Given an array, arr[] of size N, the task is to find the count of array indices such that removing an element from these indices… Read More
Given an array arr[] of size N, the task is to find the longest non-empty subsequence from the given array whose sum is maximum. Examples:… Read More
Given an array of strings arr[], consisting of strings made up of lowercase and uppercase letters, the task is to print all the strings from… Read More
In the Byteland country, a string S is said to super ASCII string if and only if the count of each character in the string… Read More
Given two strings S and T, where S represents the first lane in which vehicles move from left to right and T represents the second… Read More
Given integers N, L and R, the task is to generate a Bitonic Sequence of length N from the integers in the range [L, R]… Read More
Given two arrays of H[] and B[] consisting of N and M integers respectively, denoting the diameter of holes and balls respectively. M number of… Read More
Given a string str, consisting of lowercase alphabets, the task is to find the shortest string which is not a subsequence of the given string.… Read More
Given two arrays arr1[] and arr2[] of length M and N consisting of digits [0, 9] representing two numbers and an integer K(K ≤ M… Read More