2021-09-08から1日間の記事一覧
与えられた配列の中心をルートにする 左側にルートより小さい値、右側に大きな値の枝を作る 1-2を繰り返す 参考1 https://qiita.com/mhiro216/items/49d244dd9da1d6e6f70d 参考2 https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/…
与えられた配列の中心をルートにする 左側にルートより小さい値、右側に大きな値の枝を作る 1-2を繰り返す 参考1 https://qiita.com/mhiro216/items/49d244dd9da1d6e6f70d 参考2 https://leetcode.com/problems/convert-sorted-array-to-binary-search-tree/…