Skip to content
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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

daheeParkk
Copy link
Contributor

No description provided.

@daheeParkk daheeParkk self-assigned this Aug 10, 2024
Copy link
Contributor

@20HyeonsuLee 20HyeonsuLee left a 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) {
Copy link
Contributor

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));
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

intervals가 뭐죠!?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants