Swap Kth node from beginning with Kth node from end in a Linked List

mediumSolve on LeetCode
Last edited: August 2, 2025