Refresh to get another 5 random questions

Make Palindrome

By definition palindrome is a string which is not changed when reversed. "MADAM" is a nice example of palindrome. It is an easy job to test whether a given string ...


Cube coloring problem

You have a normal six sided cube. How many different cubes can you make by painting each side using one of six colors?
If you can rotate two cubes to ...


Measure water

You have three cans of capacity 8, 5, 3 ltrs. 8 ltr can is filled with 8 ltrs of water, 5 and 3 ltr cans are empty. How do u ...


Find the peak entry

Given an array A with n distinct entries, for some index p between 1 and n, the values in the array entries increase up to position p in A and ...


Design a stack to perform push(), pop() and retrieve minimum in constant time.

Design a stack. We want to push, pop, and also, retrieve the minimum element in constant time.

http://placementsindia.blogspot.com/2007/09/google-top-interview-puzzles.html