hell_hacker's blog

By hell_hacker, history, 8 months ago, In English,

1218 Perfect Service

I wanted some insights on how to solve this problem.

My WA Approach: I thought all the non-leaf nodes in centroid decomposed tree would be the answer (with the exception of n = 1 where answer would be 1)

  • Vote: I like it
  • 0
  • Vote: I do not like it