我正在做Complete Binary Tree Inserter - LeetCode,但是出现了["CBTInserter","insert","insert","get_root"] [[[1,null,2]],[3],[4],[]]这样的 input ,这是合理的吗?[1,null,2]不是一个 complete binary tree 呀。难道我哪里理解错误了?🤕

1
twksos 2023-05-26 02:08:59 +08:00
不合理,将就着做。取其中 complete 的部分。。。
|