Test case breaks assumptions made in problem description


  • 0
    B

    Input:

    head: [1]
    k = 2
    

    This should never happen based on this line in the problem description:

    k is a positive integer and is less than or equal to the length of the linked list.
    

Log in to reply
 

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