MO's algo on trees

Can someone provide link to some questions which uses MO’s algorithm on trees …

The only one I’ve ever seen: https://www.codechef.com/APRIL20B/problems/FCTRE

1 Like