Technical Interview Questions

Sort: Popular Date
Sort: Popular Date

“You are standing beside a road watching cars pass by. The probability that you see a car pass by in 1 minute is 1/4. What is the probability that you see a car pass by in 30 seconds?”

“What are the first 2 integers that, when added together, equal 10 in a "very large" array of unsigned integers?”

“Given a series of words written using a scrambled alphabet, figure out what order the letters of the alphabet are in.”

“What is the output?
int n = 1;
puts(((char*)&n)[0]==1?"Y":"N");”

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.”

“Write a program that given 4 coin denominations and a dollar amount finds the best way to express that amount using the coins given.
I.e. you have coins with denominations of 1c, 7c, 13c,19c and you…”

“Given a set of people, one of them is a celebrity. You have a 2D array which describes which people know each other, that is [N, M] is true if N knows M. The celebrity will not know anyone (except…”

“Describe and code an algorithm that returns the first duplicate character in a string?”

2 of 2 found helpful

“Given a page size and a number, align the number with the nearest page.

(Note: This was a phone interview question. The interviewer and I used an online document to share ideas about this problem.”

1120 of 2,530 Interview Questions