CommonLounge Archive

[CNTTREE] Trees Again

December 06, 2017

Given a tree, you need to count how many subtrees with diameter <= K exist.


© 2016-2022. All rights reserved.