Write a function that will find a missing or duplicated number in an array.
Write code to generate all possible combinations of ‘r’ elements in a given array of size ‘n’?
What method can be used to pick or remove any given character from a string?
How will you find out the longest palindrome in a given string.
How will you find the depth of a binary tree?
What code will you write to check if a number is power of two or not?
Write code that will check if a linked list is a palindrome or not.
Write a program for producer-consumer problem. Use a blocking queue.
Write code to serialize and deserialize a given binary tree.
How will you compute x^y such that it will work for floats and negative values?