Paratroopers

Question : Two paratroopers jump from a plane and land on an infinite straight line. They want to find each other. Arrive at an algorithm so that they meet in finite time. You can use only the following type of statements.
1. if (some condition)
2. while (some condition)
3. Go left
4. Go right
Remember that both are going to use exactly the same algorithm.

Answer : Sorry guys, I don’t know the answer. If you know, just post a comment. I can update here.

Leave a Reply

Your email address will not be published. Required fields are marked *