You are viewing a single comment's thread. Return to all comments →
The problem specifies that there will only be one unique solution. Your test case has three valid solutions (i.e. (0,2), (1,2) and (3,4)) and so it is not a valid test case for the problem defined.
i agree, undefined in case there are 3 (or more) similar costs.