Technical Interview Questions

Sort: Popular Date
Sort: Popular Date

“Suppose we hire you, and you and the rest of the new interns decide to go buy a cup of coffee. Each intern purchases one cup of coffee. One of the interns suggests everyone play a game. Everyone…”

“Given an array of integers eg [1,2,-3,1] find whether there is a sub-sequence that sums to 0 and return it (eg 1,2,-3 or 2,-3,1)
    Checking every sub-sequence is O(n^2) which is too inefficient”

“Implement a power function to raise a double to an int power, including negative powers.”

1 of 1 found helpful

“Write a function that divides two numbers without using the divide '/' operator.”

“Suppose you have two covariance matrices A and B. Is AB also a covariance matrix? Suppose that, by plain dumb luck, we also have that AB=BA. Is AB a covariance matrix under this additional…”

“List all anagrams in a file. Assumptions: case-insensitive, a-z characters only, one word per line. For example, if the file contains dog, cat, ddd, goo, act, god -- output dog, god, act, cat”

“25 racehorses, no stopwatch. 5 tracks. Figure out the top three fastest horses in the fewest number of races.”

1 of 1 found helpful

“Given a stream of integers of unknown (possibly large) length, how would you pick one at random? Now prove its random.”

“Asked to implement a function that takes an integer and returns whether or not the number had an odd or even number of 1 bits.”

“find 3 elements in an array that sum to 0.”

110 of 3,101 Interview Questions