Development Intern Interview Questions

5,461 development intern interview questions shared by candidates

Given two robots on an infinite line of integers, with a flag guaranteed to be between them, write a behavior for both robots to follow which will guarantee them to eventually meet. The robots can only "see" the position they are standing on, and can't remember anything. Also note that they can't tell if they are the leftmost or rightmost robot. They can tell if they are on the flag or the other robot. They may move right, move left, or wait.
avatar

Software Development Intern

Interviewed at Veson Nautical

3.9
May 2, 2012

Given two robots on an infinite line of integers, with a flag guaranteed to be between them, write a behavior for both robots to follow which will guarantee them to eventually meet. The robots can only "see" the position they are standing on, and can't remember anything. Also note that they can't tell if they are the leftmost or rightmost robot. They can tell if they are on the flag or the other robot. They may move right, move left, or wait.

Viewing 731 - 740 interview questions

Glassdoor has 5,461 interview questions and reports from Development intern interviews. Prepare for your interview. Get hired. Love your job.