Help — Nodes lying on same path in a Tree

Правка en1, от dead_lock, 2016-04-23 17:11:47

Given a Treen with n nodes and n - 1 edges, I have to answer Q queries. In every query, I get a list of nodes of size k,
n1, n2, ..., nk. I need to answer the minimum number of paths that are required that cover all of these nodes.See the example for better insight

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский dead_lock 2016-04-23 17:28:35 0 (published)
en2 Английский dead_lock 2016-04-23 17:28:13 44 (saved to drafts)
en1 Английский dead_lock 2016-04-23 17:11:47 381 Initial revision (published)