Given an integer array (of length n), find and print all the subsets of input array. June 19, 2020 Add Comment TITLE :- Print Subsets of Array PROBLEM :- Given an integer array (of length n), find and print all the subsets of input array. Subsets are ... Read More
Given an integer array (of length n), find and return all the subsets of input array. June 19, 2020 Add Comment TITLE :- Return subset of an array PROBLEM :- Given an integer array (of length n), find and return all the subsets of input array. Subsets ... Read More
Given an integer sorted array (sorted in increasing order) and an element x, find the x in given array using binary search. Return the index of x. June 19, 2020 Add Comment TITLE :- Binary Search (Recursive) PROBLEM :- Given an integer sorted array (sorted in increasing order) and an element x, find the x in giv... Read More
A child is running up a staircase with N steps, and can hop either 1 step, 2 steps or 3 steps at a time. Implement a method to count how many possible ways the child can run up to the stairs. You need to return number of possible ways W. June 19, 2020 Add Comment TITLE :- Staircase PROBLEM :- A child is running up a staircase with N steps, and can hop either 1 step, 2 steps or 3 steps at a time. Imple... Read More
Suppose you have a string, S, made up of only 'a's and 'b's. Write a recursive function that checks if the string was generated using the following rules: June 19, 2020 Add Comment TITLE :- Check AB PROBLEM :- Suppose you have a string, S, made up of only 'a's and 'b's. Write a recursive function that ch... Read More
Given an integer n, using phone keypad find out and print all the possible strings that can be made using digits of input n. June 19, 2020 Add Comment TITLE :- Print Keypad Combinations Code PROBLEM :- Given an integer n, using phone keypad find out and print all the possible strings that c... Read More