Computer Science, asked by sakthisree, 8 months ago

Door in a wall You are facing a wall that stretches infinitely in both directions.
There is a door in the wall, but you know neither how far away nor in
which direction. You can see the door only when you are right next to it. Design
an algorithm that enables you to reach the door by walking at most O(n)
steps where n is the (unknown to you) number of steps between your initial
position and the door. [

Answers

Answered by Anonymous
0

Answer:

why u confused abt ur door

Similar questions