Блог пользователя sas

Автор sas, история, 7 лет назад, По-английски

The problem is: given an array of size n(n < 2 * 10 ^ 5) of integers(a[i] < 2 * 10 ^ 5) and 2 types of queries. The first one is to assign a value to an element(v < 2 * 10 ^ 5), another is to find such minimal k that k >= i and a[k] >= x(i and x are given and lesser than 2 * 10 ^ 5 both). I wonder how to solve it faster than O(nlog^2(n)).

Полный текст и комментарии »

  • Проголосовать: нравится
  • -22
  • Проголосовать: не нравится