Given a set of points (x,y) and an integer "n", return n number of points which are close to the origin
Intern Interview Questions
248,705 intern interview questions shared by candidates
Given a number n, give me a function that returns the nth fibonacci number. Running time, space complexity, iterative vs. recursive.
When was a time in your life where you received criticism and how did you react?
No tough questions were asked. They just wanted to know if I could accept it and meet their deadlines.
How do you find three numbers that sum to 0? (in a list). Now can you do it under O(n^3)?
What is the sum of the square root of every number from 1 to 100?
Swap two variables without using a temp.
The interviewer gives you 100 blank cards, and you can write a single positive integer on each card. The interviewer looks at the cards when you're done (so he knows the probability distribution of the deck), then shuffles the deck. The interviewer guesses the top card of the deck, and if he's right, he makes in $ the number written on the card. What numbers should you write on the cards to minimize the expected return of the interviewer?
2) A. 10 ropes, each one has one red end and one blue end. Each time, take out a red and a blue end, make them together. Repeat 10 times. The expectation of the number of loops. B. 10 ropes, no color. All the other remains the same.
You are playing a game in which four fair coins are flipped and the amount of money you receive in dollars is equal to the number of heads that appear in total. If you do not like the outcome of the first four flips, you have the option to re-flip the four coins, but you are obligated to take the second outcome. Determine a fair value fr the game.
Viewing 171 - 180 interview questions