Skip to content

Commit 114826c

Browse files
committed
added Description
1 parent 6275fe1 commit 114826c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

Add Two Numbers/code.js

Whitespace-only changes.

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -321,11 +321,8 @@ Output: 3
321321
Explanation: The LCA of nodes 5 and 1 is 3.
322322

323323
## 32) [Lowest Common Ancestor of a Binary Tree](https://github.com/mauricechouam/Leetcode-training/blob/main/Lowest%20Common%20Ancestor%20of%20a%20Binary%20Tree/code.js)
324-
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
325-
According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes p and q as the lowest node in T that has both p and q as descendants (where we allow a node to be a descendant of itself).”
326-
Input: root = [3,5,1,6,2,0,8,null,null,7,4], p = 5, q = 1
327-
Output: 3
328-
Explanation: The LCA of nodes 5 and 1 is 3.
324+
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.
325+
\You may assume the two numbers do not contain any leading zero, except the number 0 itself.
329326

330327

331328

0 commit comments

Comments
 (0)