Skip to main content

Command Palette

Search for a command to run...

Add Two Numbers

Published
1 min readView as Markdown

🧠 Problem

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a single digit. Add the two numbers and return the sum as a linked list. You may assume the two numbers do not contain any leading zero, except the number 0 itself.


🏷️ Tags

Linked List,Math,Recursion


📊 Difficulty

Medium

✅ Success Rate: 38.5%
📥 Submissions: 6,987,977
📈 Accepted: 2,690,949


❤️ Reactions

👍 Likes: 17799
👎 Dislikes: 3682


💡 Hints


🔁 Similar Questions

  • Multiply Strings
  • Add Binary
  • Sum of Two Integers
  • Add Strings
  • Add Two Numbers II
  • Add to Array-Form of Integer
  • Add Two Polynomials Represented as Linked Lists

More from this blog

ReStart LeetCode

540 posts