Please clarify or rephrase the problem description


  • 2
    R

    [1,2,3,4,4] returns false, but it still satisfies 'where each subsequence consists of at least 3 consecutive integers', it didn't ask for the whole subsequence to be consecutive.


  • 1
    N

    @roy14 I see your point. The problem description is unclear (or considering your example: wrong). It says: "each subsequences consist of at least 3 consecutive integers." However, considering the test cases, it should have said: "each subsequence should satisfy both of these conditions: Firstly, all elements in the subsequence should be consecutive integers with no duplicates. Secondly, each subsequence should contain at least 3 elements." [1,2,3,4,4] returns false because it doesn't satisfy the first condition.


Log in to reply
 

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