Software Engineering Interview Questions

56,371 software engineering 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.

Viewing 641 - 650 interview questions

Glassdoor has 56,371 interview questions and reports from Software engineering interviews. Prepare for your interview. Get hired. Love your job.