SPOJ QTREE4
Difference between en1 and en2, changed 3 character(s)
Need help! I am tried to solve SPOJ [QTREE4](http://www.spoj.com/problems/QTREE4/). I used centroid decomposition, but still getting TLE (time limit exceeded). In my code, a query is processed in _O(log(n)^2)_. How can I improve complexity? Any suggestions. [Here](https://paste.ubuntu.com/p/gQfZG84q5v/) is my code.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English fsociety00 2018-12-01 17:11:04 3 Tiny change: 'd help! I am tried to ' -> 'd help! I tried to '
en1 English fsociety00 2018-06-08 12:08:41 327 Initial revision (published)