Wrong test case in Plus One Linked List?
Anonymous User
112

https://leetcode.com/problems/plus-one-linked-list/solution/
Why does the following test case have an output that is not +1 of the input? What am I missing?

Input:
[6,1,4,5,3,9,0,1,9,5,1,8,6,7,0,5,5,4,3]
Output:
[6,1,4,5,3,9,0,1,9,5,1,8,6,7,0,5,6,2,8]

I expected:
[6,1,4,5,3,9,0,1,9,5,1,8,6,7,0,5,5,4,4]

Comments (1)