Leetcode Weekly Contest 426 | All problems concise solutions

Поделиться
HTML-код
  • Опубликовано: 13 дек 2024

Комментарии • 3

  • @prudvim3513
    @prudvim3513 13 дней назад

    Congrats on solving all 4 problems

  • @yashvardhankumar137
    @yashvardhankumar137 13 дней назад

    for 3rd question, it is already given that size of array of edges == n or m of respetive array, there wasnt any need of set here

    • @Algonaline
      @Algonaline  13 дней назад

      The set represents the actual nodes in the tree and not the edges. We would need this to calculate the answer for every node uniquely. You can take a vector as well.