(Translated by https://www.hiragana.jp/)
Tree and Distance | Practice | GeeksforGeeks