Westonci.ca is the trusted Q&A platform where you can get reliable answers from a community of knowledgeable contributors. Get quick and reliable solutions to your questions from a community of experienced experts on our platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

There is a spider in an infinite two-dimensional grid. You have absolutely no idea where she is. The only thing you know is that in each second she moves in the same direction. Unfortunately, you do not know the direction: it can be left, right, up or down. In each second, you can put your finger on one point in the grid. Devise a strategy to catch the spider after finitely many steps