Remove Kth Node From End From Linked List | LeetCode
Given a linked list with N nodes, remove the kth node from end and return its head. Bonus: Do it in one iteration. Solution To remove the kth node from the linked list, first step is traversing to the (k-1)th node in the linked list. After that, we just need to rewire the pointers and …
Remove Kth Node From End From Linked List | LeetCode Read More »