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.

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.