Tree Distances II | DFS | Rerooting Technique

Поділитися
Вставка
  • Опубліковано 6 лют 2025
  • In this video, I shall discuss the problem tree Distances - II
    Prerequisite: tree
    Code implementation in C++:
    github.com/ram...
    Code implementation in Java:
    github.com/ram...
    Code implementation in Python:
    github.com/ram...
    Follow me on
    LinkedIn: / ramandeep-singh-15837019b
    Twitter: / thehawkreturns
    Instagram: / ramandeep.singh.2000
    Stay tuned for updates :D

КОМЕНТАРІ • 7

  • @hopittyhop
    @hopittyhop 8 місяців тому

    Nicely Explained!

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

    Thank you for sharing and posting this helpful video

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

    Great sir.

  • @shivansh-gup
    @shivansh-gup 6 місяців тому

    most clear explanation for this question. Also the observation that change = no. of edges not part of subtree - no. of edges part of subtree , is from observation only right?
    Like you have to observe what formula is the tree following in different tree rerooting problems ?