constant space DP solution just iterating over the grid .. took 5ms ... i donno if there is a way to optimise further


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.