I just need some very basic hints.
I am thinking of topological sort + BFS to start. What do you say? (No spoilers plz)
Find sum of distances in undirected tree
I just need some very basic hints.
I am thinking of topological sort + BFS to start. What do you say? (No spoilers plz)
Rev. | Lang. | By | When | Δ | Comment | |
---|---|---|---|---|---|---|
en1 | aakarshmadhavan | 2018-07-13 05:22:09 | 203 | Initial revision (published) |