Skip to content

Latest commit

 

History

History
16 lines (8 loc) · 257 Bytes

File metadata and controls

16 lines (8 loc) · 257 Bytes

Plus One Linked List

Given a non-negative number represented as a singly linked list of digits, plus one to the number.

The digits are stored such that the most significant digit is at the head of the list.

Example:

Input:

1->2->3

Output:

1->2->4