V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
JasonLaw
V2EX  ›  程序员

关于 LeetCode 919 Complete Binary Tree Inserter 的疑问

  •  
  •   JasonLaw · 2 天前 · 237 次点击

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

    twksos
        1
    twksos  
       2 天前
    不合理,将就着做。取其中 complete 的部分。。。
    关于   ·   帮助文档   ·   博客   ·   nftychat   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2340 人在线   最高记录 5634   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 10:43 · PVG 18:43 · LAX 03:43 · JFK 06:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.