Skip to content

104. Maximum Depth of Binary Tree#20

Open
hemispherium wants to merge 1 commit into
mainfrom
0104-maximum-depth-of-binary-tree
Open

104. Maximum Depth of Binary Tree#20
hemispherium wants to merge 1 commit into
mainfrom
0104-maximum-depth-of-binary-tree

Conversation

@hemispherium
Copy link
Copy Markdown
Owner

@hemispherium hemispherium self-assigned this Apr 13, 2026
@@ -0,0 +1,11 @@
### step1

わからなかったのでChatGPTに解いてもらった。DFSで左右のnodeのうち深い方を取って+1していくことを繰り返すだけだった。
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

他のC++で取り組まれた方達のPR/レビューもいくつか見てみると有意義だと思います。
どんなふうに考えているかとか、どんなアルゴリズムを使っているかなど、勉強になります。
ただ、その分時間はかかるので、負担にならない程度にくらいです。
(私の場合、自分で取り組んだ時間よりも長く時間を使うことが多いので、見るべきポイントを絞っていたりしています。)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

そうですね、ほかの方のPRやレビューも確認するようにします!

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