Intern Interview Questions

248,932 intern interview questions shared by candidates

I had one question for each interview and both were probability puzzles. Here is the tougher one: you have a bag of N strings, and at random, you pull out a end. You pull out another end and you tie the two ends together. You take another two string ends and tie them together. You repeat this until there are no loose ends left to pull out of the bag. What is the expected number of loops?
avatar

Business Operations Intern

Interviewed at Meta

3.5
Feb 6, 2014

I had one question for each interview and both were probability puzzles. Here is the tougher one: you have a bag of N strings, and at random, you pull out a end. You pull out another end and you tie the two ends together. You take another two string ends and tie them together. You repeat this until there are no loose ends left to pull out of the bag. What is the expected number of loops?

Connect Four is a game where two players take turns dropping their color discs into a vertically suspended grid. The game ends when a player adds a disc to the playing grid that connects four discs of their color. The connected discs can be in a horizontal, vertical or diagonal line. Write a function to be called after every turn that returns true if the game is over (and false otherwise).
avatar

Software Development Engineer Intern

Interviewed at Microsoft

4
Mar 19, 2009

Connect Four is a game where two players take turns dropping their color discs into a vertically suspended grid. The game ends when a player adds a disc to the playing grid that connects four discs of their color. The connected discs can be in a horizontal, vertical or diagonal line. Write a function to be called after every turn that returns true if the game is over (and false otherwise).

Viewing 351 - 360 interview questions

Glassdoor has 248,932 interview questions and reports from Intern interviews. Prepare for your interview. Get hired. Love your job.