Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

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

Автор AryanDLuffy, история, 4 года назад, По-английски

Can range queries of form (l,r,x) where the answer to the query is number of values less than x in range [l,r] of a given array be solved in O(logn) time online? There are no updates. Plz describe the solution if it exists. I know of the solution by merge sort tree which solves it in O((logn)^2).

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

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