Some test cases are not aligned with the question stem


  • 1
    R

    It is mentioned in the question stem that "k is a positive integer and is less than or equal to the length of the linked list. If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is."

    I meet test cases like this
    [1,2]
    k = 3
    The expected answer is [2,1]???????


Log in to reply
 

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