Arrays
Array manipulation and matrix problems.
Missing or Duplicate Number in an Array
Write a function that will find a missing or duplicated number in an array.
Probability Distribution Function
Write code to generate all possible combinations of ‘r’ elements in a given array of size ‘n’?
Sum Up a Pair in Array
Can you find a pair in array that will sum up to particular number?
Right Rotate an array by k elements
An array of elements is given arr arr is of length n Right rotate array by k elements Time complexity
Reverse a String
A typical programming interview question is “reverse a string, in place”. if you understand pointers, the solution is simple. even
Chessboard
problem: using 31 dominoes, where one domino covers exactly two squares, can you cover all the empty squares on this
Webloggers
Five webloggers – joshua Allen, meg Hourihan, jason Kottke, robert Scoble, and joel Spolsky – were competing for karma points
World Series
You have $10,000 dollars to place a double-or-nothing bet on the Yankees in the World Series (max 7 games, series
Box ‘o Numbers
Arrange the numbers 1 to 8 in the grid below such that adjacent numbers are not in adjacent boxes (horizontally,