Erroneous constraint: k <= Len of linkedlist


  • 1
    O

    It is mentioned in the question that the value of k will be less than or equal to the length of the linked list. However there is a test case with input list: [1] and k: 2.

    Forgive me if I am wrong. Thanks.


Log in to reply
 

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