Comment

avatar username

Instead of divide and conquer, you can keep a sorted vector of pairs {block index, minimum in block} which you can update naively after each query with a binary search.

The actual rating of this user is 1358.

Original comment.

Statistics