前回からアルゴリズムとデータ構造について書き始めました。 今回はデータ構造の一種であるバイナリツリーの概要についてまとめます。 バイナリツリー(二分木)とは バイナリツリーは、各ノードが最大で二つの子ノードを持つことができるデータ構造 ...
Given the root of a binary tree, return its maximum depth. A binary tree's maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node. 考えたこと ...
プログラミングなどではおなじみの、バイナリツリー(二分木)。 枝分かれが2つまでのツリー構造のことですが、なぜか 「もしバイナリツリーにズボンを履かせたら、どんな風に履くだろうか?」と疑問に思った人がいました。 Can't really wrap my head around ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する