Given an array of size S and N queries, where each query either updates an element at a given index or asks for the R-th minimum element in the array, efficiently process all queries.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.