Project Euler #208: Robot Walks

  • + 1 comment

    I have had a hard time with similar problems before.

    Simply put, there are 2^m possible paths to test. This is easy, unless they are too many. Which they are.

    Dynamic programming helps, but not that far. Memory is not enough to remember paths (since they only occationally overlap) and/or there are too many solutions to calculate to do it in time.

    It is (perhaps) possible to eliminate some subset of paths.

    Can anyone give a hint? Is dynamic programming with some twist possible? Or a completely different approach required?