Skip to content

199. Binary Tree Right Side View - #109

Open
kitano-kazuki wants to merge 1 commit into
mainfrom
199-binary-tree-right-side-view
Open

199. Binary Tree Right Side View#109
kitano-kazuki wants to merge 1 commit into
mainfrom
199-binary-tree-right-side-view

Conversation

@kitano-kazuki

Copy link
Copy Markdown
Collaborator

Comment thread memo.md
public:
std::vector<int> rightSideView(TreeNode* root) {
if (root == nullptr){
return std::vector<int>();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

return {};

と書いたほうがシンプルだと思います。

Copy link
Copy Markdown
Collaborator 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants