Whenever you're ready, walk me through how you'd approach this.
You are at 0 on the real line. A flag is planted at an integer coordinate, but you do not know where or which direction. Is there an algorithm to find the flag in time linearly dependent on the distance from the origin?