Q1. Break The Integer Ninja is given an integer ‘N’ . One day Ninja decides to break the integer into K positive parts (K>=2) such that the sum... read more
Q2.Balanced parentheses Given an integer ‘N’ representing the number of pairs of parentheses, Find all the possible combinations of balanced pa... read more
Q3.Buy and Sell Stock You are Harshad Mehta’s friend. He told you the price of a particular stock for the next ‘N’ days. You can either buy or ... read more