Then why is this sequence considered contiguous? how is the contiguousness defined?


  • 1
    A

    From the known cases, the sequence of 2 , -3 , 1 , 2 , 3 , -2 is considered contiguous, so is -1, 1, it seems to me that zero is omitted, and duplicates are allowed, so, what is the requirement?


  • 0
    J

    Contiguous means the numbers are adjacent in the given array, indexed 3 to 8;
    This has nothing to do with the value of the numbers themselves.


Log in to reply
 

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