2019 Asia Danang Regional - Easy Query

Author: Benjamin Qi

Table of Contents


Edit on Github

This section is not complete.

Feel free to file a request to complete this using the "Contact Us" button.

The first step is to determine sus_u and svs_v for each query with a Wavelet tree. Once we have these values, we can answer the queries in decreasing order of ll with a segment tree.

Solution

Give Us Feedback on 2019 Asia Danang Regional - Easy Query!