Find the Closest Marked Node

mediumSolve on LeetCodeLast edited: August 2, 2025