# Algorithm Interview Questions

Sort: Popular Date
Sort: Popular Date

May 31, 2011
 “Given a set of non-overlapping integer ranges (1,3) (5,8), etc., and an input integer, what is the best way to organize the data and allow for quick search based on the input, etc.”

### Software Engineer at Microsoft

Apr 29, 2009
 “How many unique paths are there from B-L point to the T-R point of a chess table? What would be your approach to calculate this?”

### Software Development Engineer at Microsoft

Jan 4, 2010
 “Write an algorithm to verify if a tree is a binary search tree.”

### Quant Research Intern at Susquehanna International Group, LLP

Mar 17, 2013
 “Suppose you have 100 GB of data that you want to sort, but you only have 1 GB of memory. How would you sort this data?”

### Software Engineer Intern at Motorola Mobility

Mar 19, 2009
 “Write a function in Java that will take a sorted array of ints, possibly with duplicates, and compact the array removing all the duplicate numbers. That is, if the contains the numbers…”

### Senior Software Engineer at Oracle

Mar 19, 2009
 “Considering a 2-dimension matrix that can only be traversed by 1 adjacent position at a time and never diagonally. Create an algorithm to traverse that matrix from its upper-left corner to its…”

### Machine Learning Software Engineer at Facebook

Jan 21, 2010
 “Suppose you have a matrix of numbers. How can you easily compute the sum of any rectangle (i.e. a range [row_start, row_end, col_start, col_end]) of those numbers? How would you code this?”

### Web Development Engineer at Amazon.com

May 24, 2009
 “How would you implement integer division if your language did not offer it.”

### Software Engineer at AppNexus

Jul 20, 2013
 “You have an analog clock with two hands, one for the hour and one for the minute. Given a time of the day, what is the angle between the two hands?”

### Software Engineer Intern at Facebook

Nov 8, 2010
 “Output a single linked list in reverse, in linear time and constant space, and recursively”
3140 of 796 Interview Questions