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

[김대의] 2주차 문제 올립니다. #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kimeodml
Copy link
Contributor

No description provided.

Copy link
Contributor

@chaeseungyun chaeseungyun left a comment

Choose a reason for hiding this comment

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

좋습니다

[root.right, root.left] = [root.left, root.right];
invertTree(root.right);
invertTree(root.left);
return root;
Copy link
Contributor

Choose a reason for hiding this comment

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

오 배열을 통한 swap

prev = head;
head = cur;
}
return prev;
Copy link
Contributor

Choose a reason for hiding this comment

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

저도 이렇게 했는데 단순한 과정인데 작성하기 힘들더라구여..

}
}
}
return arr.length === 0;
Copy link
Contributor

Choose a reason for hiding this comment

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

오 스택이 비었는 지 확인을 단순하게 했네요 굳

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