Given an integer n, using phone keypad find out all the possible strings that can be made using digits of input n. Return empty string for numbers 0 and 1.

Given an integer n, using phone keypad find out all the possible strings that can be made using digits of input n. Return empty string for numbers 0 and 1.

TITLE :- Return Keypad Code PROBLEM :- Given an integer n, using phone keypad find out all the possible strings that can be made using digit...
Read More
Sort an array A using Quick Sort. Change in the input array itself. So no need to return or print anything.

Sort an array A using Quick Sort. Change in the input array itself. So no need to return or print anything.

TITLE :- Quick Sort Code PROBLEM :- Sort an array A using Quick Sort. Change in the input array itself. So no need to return or print anythi...
Read More
Sort an array A using Merge Sort. Change in the input array itself. So no need to return or print anything.

Sort an array A using Merge Sort. Change in the input array itself. So no need to return or print anything.

TITLE :- Merge Sort Code PROBLEM :- Sort an array A using Merge Sort. Change in the input array itself. So no need to return or print anythi...
Read More
Given a string S, remove consecutive duplicates from it recursively.

Given a string S, remove consecutive duplicates from it recursively.

TITLE :- Remove Duplicates Recursively PROBLEM :- Given a string S, remove consecutive duplicates from it recursively. Input Format : String...
Read More
Given an input string S and two characters c1 and c2, you need to replace every occurrence of character c1 with character c2 in the given string. Do this recursively.

Given an input string S and two characters c1 and c2, you need to replace every occurrence of character c1 with character c2 in the given string. Do this recursively.

TITLE :- Replace Character Recursively PROBLEM :- Given an input string S and two characters c1 and c2, you need to replace every occurrence...
Read More

You have been given an integer array/list(ARR) of size N. It has been sorted(in increasing order) and then rotated by some number 'K' in the clockwise direction. Your task is to write a function that returns the value of 'K', that means, the index from which the array/list has been rotated.

TITLE :- Check Array Rotation PROBLEM :- You have been given an integer array/list(ARR) of size N. It has been sorted(in increasing order) a...
Read More