Software Engineer Interview Questions

467,290 software engineer interview questions shared by candidates

1) Given an array with 0s and other integers. Find the fastest (that use least organizing) way to transfer all the 0s to the right end of that array. 2) Given an array of integer, find 2 numbers that their sum is closest to a specific number.
avatar

Software Engineer Intern

Interviewed at Meta

3.5
Mar 6, 2015

1) Given an array with 0s and other integers. Find the fastest (that use least organizing) way to transfer all the 0s to the right end of that array. 2) Given an array of integer, find 2 numbers that their sum is closest to a specific number.

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.5
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 1911 - 1920 interview questions

Glassdoor has 467,290 interview questions and reports from Software engineer interviews. Prepare for your interview. Get hired. Love your job.