tree related of leecode