LeetCode 102. Binary Tree Level Order Traversal - Interview Prep Ep 70

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 23

  • @yxs7
    @yxs7 Рік тому +1

    谢谢Fisher! 非常有帮助!

  • @annawilson3824
    @annawilson3824 2 роки тому +2

    Walking thru the logic, then implementing it. Awesome! If you could relate code details to logic again, say where the level should be vs the inner loop and where we need to pop vs the inner loop, that would be beyond great! Subscribed!

  • @sophia0282
    @sophia0282 Рік тому +1

    Hi Fisher, can you please let me know why did you use Linkedlist here : Queue queue = new LinkedList(); , while ArrayList were used in other 2 places?

  • @wengeance8962
    @wengeance8962 4 роки тому +5

    Thanks, perfect explanation. subscribed!

  • @x841010ify
    @x841010ify 2 роки тому +1

    Very clear explanation, thanks for all these tutorials, subscribed!!!

  • @undergradalgo2248
    @undergradalgo2248 3 роки тому +2

    Dont stop making more videos.

  • @alikhansharapat9933
    @alikhansharapat9933 2 роки тому +1

    Your explanation is very good and I think you have unfairly small number of subscribers and view

  • @evawang953
    @evawang953 4 роки тому +3

    very good explanation!Thanks

  • @suganyakoodal5447
    @suganyakoodal5447 2 роки тому +1

    You are awesome..Your videos are helping me a lot!

  • @igaming_
    @igaming_ 3 роки тому +1

    Subscribed

  • @sanchitjain9745
    @sanchitjain9745 3 роки тому +1

    Great Explanation..loved it.. :)

  • @sandeshrana7225
    @sandeshrana7225 3 роки тому +1

    Great

  • @yitingg7942
    @yitingg7942 4 роки тому

    fisher, 我想请问一下为什么Queue q = new LinkedList(); 这个queue 必须是Linkedlist 而我用arraylist 就不行呢?

    • @vickunwu
      @vickunwu 3 роки тому

      因为LinedList实现了Queue接口;ArrayList则没有。
      建议下载一个API文档

  • @miziwang7023
    @miziwang7023 2 роки тому

    我总觉得这个小哥在说“我……我……我”,哈哈哈哈

  • @scm534
    @scm534 Рік тому

    this is not a good example because every level has the same number of nodes