Engineering Intern Interview Questions

56,373 engineering intern interview questions shared by candidates

2 robots land on a planet that only has x coordinate (a line). The robots can only go either left or right. The planet has nothing on it except the parachute that each robot has used. You're asked to program the robot to meet each other in the shortest amount of time. You're only allowed to use if statement and "Go left" and "Go right". The if statement can only contain: if the robot meet each other, or if the robot see its own parachute.
avatar

Software Engineering Intern

Interviewed at Microsoft

4
Oct 24, 2012

2 robots land on a planet that only has x coordinate (a line). The robots can only go either left or right. The planet has nothing on it except the parachute that each robot has used. You're asked to program the robot to meet each other in the shortest amount of time. You're only allowed to use if statement and "Go left" and "Go right". The if statement can only contain: if the robot meet each other, or if the robot see its own parachute.

Not the actual question, I've modified a bit: Find the element(s) in an integer array such that if it's removed, the rest of the array can be divided into 2 sub-arrays of equal sums. The sub-arrays need not contain contiguous elements. There may be 0 or more answers.
avatar

Software Engineering Manager

Interviewed at Apple

4.1
Dec 10, 2015

Not the actual question, I've modified a bit: Find the element(s) in an integer array such that if it's removed, the rest of the array can be divided into 2 sub-arrays of equal sums. The sub-arrays need not contain contiguous elements. There may be 0 or more answers.

Viewing 651 - 660 interview questions

Glassdoor has 56,373 interview questions and reports from Engineering intern interviews. Prepare for your interview. Get hired. Love your job.