Intern Interview Questions

248,744 intern interview questions shared by candidates

given the utitlies getFriend(User u) and areFriends(User u1, User u2), write the function which takes as parameter the array of users and return a bool saying if you can divide the users in 2 groups s.t. if u1 and u2 both belong to a certain group, they are not friends.
avatar

Software Engineer Intern

Interviewed at Meta

3.6
Jan 23, 2012

given the utitlies getFriend(User u) and areFriends(User u1, User u2), write the function which takes as parameter the array of users and return a bool saying if you can divide the users in 2 groups s.t. if u1 and u2 both belong to a certain group, they are not friends.

You are blindfolded and sitting at a table with 100 quarters. Ten of the quarters are tails-up and 90 are heads up. You wish to separate the quarters into two piles, each with the same number of tails. You can flip as many as you like and the piles don't need to be the same size. How do you do it?
avatar

Trading Intern

Interviewed at Wolverine Trading

4.7
Feb 21, 2012

You are blindfolded and sitting at a table with 100 quarters. Ten of the quarters are tails-up and 90 are heads up. You wish to separate the quarters into two piles, each with the same number of tails. You can flip as many as you like and the piles don't need to be the same size. How do you do it?

Viewing 461 - 470 interview questions

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