Given the head of a singly linked list, return an array of integers where answer[i] is the value of the next greater node for the i-th node. If no strictly greater node exists later in the list, set…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.