Here is a case.
gas[4, 1, 3, 6, 1]
cost[2, 4, 2, 2, 3]
Solution: starting index(begin from 0) could be 2 and 3.
Am I missing something?
Did you meet this test case in LeetCode OJ?
About 'unique' you can just assume the result of test cases in OJ is unique. It doesn't mean result of any test case for this problem is always unique.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.