Codeforces Round 971 (Div. 4) G2. Yunli’s Subarray Queries (hard version)
- Time : O(nlogk+qlogq+nlogn)
- Space : O(n+k+q)
c++
1 |
|