Problem on Mo's Algorithm on Trees?

Revision en1, by -synx-, 2017-11-04 06:49:24

So the problem goes like, we have colors designated to vertices of tree and we need to find distinct values in subtree of a vertex (queries).
Can anyone share/remember such a problem?

Tags mo algorithm, #trees


  Rev. Lang. By When Δ Comment
en1 English -synx- 2017-11-04 06:49:24 233 Initial revision (published)