We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
The while condition should add carry != 0, like this:
while( l1 != null || l2 != null || carry ==1){ }
otherwise, it cannot pass the test case like: [9,9,9,9,9,9,9] [9,9,9,9]
output should be: [8,9,9,9,0,0,0,1] but it missed the highest [1]
thx