Problem statement Given an array of strings, if two consecutive strings are the same they will destroy each other. Your task is to find the number of remaining strings from...
Problem statement Given a number n, you have to find the count of all such numbers that satisfies the following condition: For any number x, all the permutations of x...
Problem Statement: You will be given a stack of integer values. You have to keep a track of the maximum value in the stack. For instance, the element that is...
Problem Statement: You will be given 2 arrays. You have to tell whether the 2 arrays are stack permutations of each other or not. Basically, there will be 2 input...
Problem Statement: Given a Binary Tree, you need to find all the ancestors of a particular node of that binary tree. You will be given the value that is stored...
Problem Statement You will be given an array that represents a histogram. The values of the array represent the height of the bars of the histogram and the width of...
Problem Statement You will be given an array of time intervals that will be in any random order. You have to merge all the overlapping intervals and print only the...
Problem Statement: You are given a binary tree. Your task is to print the postorder traversal of the binary tree using just 1 stack. Example Consider the tree given below....