skyscrapers
How to solve this 1313C2 - Небоскрёбы (усложнённая версия) with segment tree ?
Codeforces Round 950 Solution Discussion