Given an integer array (of length n), find and print all the subsets of input array.

Given an integer array (of length n), find and print all the subsets of input array.

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.

Given an integer array (of length n), find and return all the subsets of input array.

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.

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.

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.

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.

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:

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.

Given an integer n, using phone keypad find out and print all the possible strings that can be made using digits of input n.

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