[LeetCode 369] 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

Diffculty
Medium

Similar Problems
[LeetCode 66] Plus One Easy

Analysis

results matching ""

    No results matching ""