-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[박다희] 3주차 제출합니다. #33
base: main
Are you sure you want to change the base?
[박다희] 3주차 제출합니다. #33
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3주차도 수고하셨습니다..!
# Code | ||
```java | ||
class Solution { | ||
public int climbStairs(int n) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dp로 해결하셨군요 👍
if (node == null) { | ||
return count; | ||
} | ||
return Math.max(countDepth(node.left, count+1), countDepth(node.right, count+1)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍👍
class Solution { | ||
public int climbStairs(int n) { | ||
boolean[] check = new boolean[1000001]; | ||
for (Interval interval : intervals) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
intervals가 뭐죠!?
No description provided.