Skip to content

102.binary tree level order traversal#25

Open
nicah4o wants to merge 2 commits into
mainfrom
102.binary-tree-level-order-traversal
Open

102.binary tree level order traversal#25
nicah4o wants to merge 2 commits into
mainfrom
102.binary-tree-level-order-traversal

Conversation

@nicah4o
Copy link
Copy Markdown
Owner

@nicah4o nicah4o commented Jun 3, 2026

class Solution {
public:
vector<vector<int>> levelOrder(TreeNode* root) {
vector<vector<int>> ans;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ここはansではなくて、何かしら実態を表した名前をつけたほうが良いかもしれません。
私はvalues_by_levelを提案されました。(rimokem/arai60#26 (comment))

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.

レビューありがとうございます。
中身の情報がなかったので参考にさせていただきます。

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