Skip to content

111. Minimum Depth of Binary Tree#22

Open
TakayaShirai wants to merge 1 commit intomainfrom
111_minimum_depth_of_binary_tree
Open

111. Minimum Depth of Binary Tree#22
TakayaShirai wants to merge 1 commit intomainfrom
111_minimum_depth_of_binary_tree

Conversation

@TakayaShirai
Copy link
Copy Markdown
Owner

@TakayaShirai TakayaShirai self-assigned this Feb 12, 2026
return 0;
}

var sameLevelNodes = Queue<TreeNode?>.from([root]);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

単に nodes でも通じそうです。この長さを保つなら、自分なら nextLevelNodes と対応するように currentLevelNodes にすると思いました。この練習会では current が嫌われる傾向にありますが、next との関係を表すためなら許容されると考えます。

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