Add 1 to a number represented as a singly linked list where each node contains a single digit, and the head points to the most significant digit. Complete this in a single traversal.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.