Point Assign, Range Max — Solution & Editorial
A max segment tree supports point assignment and range-max in O(log N) each (iterative bottom-up implementation shown).
Complexity: O((N + Q) log N)
A max segment tree supports point assignment and range-max in O(log N) each (iterative bottom-up implementation shown).
Complexity: O((N + Q) log N)