Skip to content

Commit ea7f183

Browse files
author
Ihssaneabousshal
committed
Runtime: 7 ms (Top 8.73%) | Memory: 45 MB (Top 22.93%)
1 parent c6a419f commit ea7f183

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/algorithms/L/Lowest Common Ancestor of Deepest Leaves/Lowest Common Ancestor of Deepest Leaves.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Runtime: 2 ms (Top 36.92%) | Memory: 42 MB (Top 90.15%)
1+
// Runtime: 7 ms (Top 8.73%) | Memory: 45 MB (Top 22.93%)
22
class Solution {
33
public TreeNode lcaDeepestLeaves(TreeNode root) {
44
if (root.left == null && root.right == null) return root;

0 commit comments

Comments
 (0)