Medium
Given the head of a linked list, remove the k-th node from the end and return the head. (LeetCode calls this parameter n.)
head
k
n
Input: head = [1,2,3,4,5], k = 2 Output: [1,2,3,5]
Input: head = [1], k = 1 Output: []