Given the head of a singly linked list and an integer `k`, return the value of the `k`-th node from the right end (1-indexed) of the list. The solution must execute in O(n) time and O(1) auxiliary…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.