Skip to content

Commit c2e6165

Browse files
refactor 104
1 parent 4bae11d commit c2e6165

File tree

1 file changed

+4
-0
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+4
-0
lines changed

src/main/java/com/fishercoder/solutions/_104.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
public class _104 {
2525

2626
public static class Solution1 {
27+
/**
28+
* Time: O(n)
29+
* Space: O(n)
30+
*/
2731
public int maxDepth(TreeNode root) {
2832
if (root == null) {
2933
return 0;

0 commit comments

Comments
 (0)