And the next question:
What strategy should you adopt to minimize the number of steps it takes you up and down the stairs to find the solution?
What strategy should you adopt to minimize the number of steps it takes you up and down the stairs to find the solution?
https://gist.github.com/3157191
Let me know if this is what you had in mind.