99 道榆樹問題/第 59 題
外觀
< 99 道榆樹問題
構建立高平衡的二叉樹,其中每個節點的左右子樹之間的高度差不得大於 1。
# # # 這是存根 # # #
Example in Elm:
import Html exposing (text)
import List
f : Int -> Int
-- your implementation goes here
main = text (toString (f 0))
結果
4
構建立高平衡的二叉樹,其中每個節點的左右子樹之間的高度差不得大於 1。
# # # 這是存根 # # #
Example in Elm:
import Html exposing (text)
import List
f : Int -> Int
-- your implementation goes here
main = text (toString (f 0))
結果
4