A site for technical interview questions, brain teasers, puzzles, quizzles (whatever the heck those are) and other things that make you think!
The probability of a car passing a certain intersection in a 20 minute windows is 0.9. What is the probability of a car passing the intersection in a 5 minute window? (Assuming a constant probability throughout)
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.