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:  and k: 2.
Forgive me if I am wrong. Thanks.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.