first thought
- DFS
solution
|
|
problem
wrong answer
reason
not all the inputs are positive, so the sum may be 0 during some steps, we must traverse all the paths.
modification
|
|
solution
|
|
problem
wrong answer
reason
not all the inputs are positive, so the sum may be 0 during some steps, we must traverse all the paths.
modification
|
|