Skip to content

Lowest Common Ancestor Of A Binary Tree#92

Open
Yuto729 wants to merge 1 commit into
mainfrom
lowest-common-ancestor-of-a-binary-tree
Open

Lowest Common Ancestor Of A Binary Tree#92
Yuto729 wants to merge 1 commit into
mainfrom
lowest-common-ancestor-of-a-binary-tree

Conversation

@Yuto729

@Yuto729 Yuto729 commented Jul 22, 2026

Copy link
Copy Markdown
Owner

解く問題

Lowest Common Ancestor Of A Binary Tree

次に解く問題

Repository owner deleted a comment from github-actions Bot Jul 22, 2026
if left and right:
return root

return left or right

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

こちらのコメントをご参照ください。
ksaito0629/leetcode_arai60#1 (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.

おっしゃる通りだと思います
この場合はis not Noneを用いて判定するのが良いですね

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