Delete non-tail Node in linked list, Given only access to that Node

mediumSolve on LeetCode
Last edited: August 2, 2025