I'm a silent viewer of this forum, and I came across a question I don't seem to manage...:
A train is traveling along the Z axis (infinite on both sides). You have no information as of the train's direction or speed. At each time unit the train lends on a number. At each time unit you can look at a number and find whether the train lands on it.
What can be the algorithm to find the train's location and velocity?