Add Two Numbers

Medium

📝 Description

Add two numbers represented as linked lists

Input Format

Two linked list head nodes representing numbers in reverse order

Output Format

Sum as a linked list

Constraints

1 ≤ number of nodes ≤ 100

🔍 Sample Input

[2,4,3]
[5,6,4]
            

✅ Sample Output

[7,0,8]
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run