1 -1 -3
Why I feel the shortest path would be -1, 2, -1 = 0, but the expected answer is -1 according to the submission ?
it's -1, 3, -3, which sum up to -1.
Oh, I got it, thank you for your hint ! ! !
I GOT IT TOO!
I believe test expected value is wrong. It is so obvious the correct value is 0, not -1
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.