Engineer Software Interview Questions

512,496 engineer software interview questions shared by candidates

Suppose you have a huge collection of integer values, in an array or a list or some similar data structure. Now suppose there are exactly two appearances of all integers, except one. In other words, each integer appears twice, in some random order, except 1. How would you find that 1 integer.
avatar

Software Engineer Intern

Interviewed at Viasat

3.7
Nov 11, 2016

Suppose you have a huge collection of integer values, in an array or a list or some similar data structure. Now suppose there are exactly two appearances of all integers, except one. In other words, each integer appears twice, in some random order, except 1. How would you find that 1 integer.

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 2231 - 2240 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 512,496 interview questions and reports from Engineer software interviews. Prepare for your interview. Get hired. Love your job.