Writing a Planner to solve a tricky programming optimization problem | Hacker News Reader