How to solve Hotels from POI?

Revision en1, by vatsal, 2016-12-23 18:50:36

How to solve this problem from POI? It simply states: Given a tree find a triplet of nodes (a,b,c) such that distance between each other is same!

Tags poi, trees, dynamic programming, combinatorics

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English vatsal 2016-12-23 18:50:36 218 Initial revision (published)