Ambiguity in problem description


  • 0
    A

    Question about test case:
    [-1,0,1,2,-1,-4]
    It is said that the right answer for this case will be
    [[-1,-1,2],[-1,0,1]]
    That is confusing, because if we say that elements '-1' (first in array) and '-1'(5th in array) are different( that is why we have sub array[-1,-1,2] in the answer) the real answer must be the following
    [[-1,0,1],[-1,0, 1],[-1,2,-1]]
    because we have different "-1" in array.
    Please correct test cases or refine problem description to avoid ambiguity.


Log in to reply
 

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