When solving dynamic programming in a grid, how do you recognize whether the solution should start at the bottom-right of the table or top-left?
If a cell depends on cells to its left and bottom, the solution should start at the bottom-left. And so on for all other combinations of left/right and top/bottom.