Скоро Codeforces Round 1133 (Div. 1, Div. 2)! Регистрация здесь. ×

How to find frequency of a given element in a range?
Разница между en1 и en2, 1 символ(ов) изменены
Given an array A of n elements and queries of type (l r k),find the occurrences of k in the range l to r↵
↵
If there are no updates, we can solve the problem by having a map<int,vector> and doing a binary search.↵
↵
But what if there are updates involved.↵
↵
I read somewhere that we can use bit..↵
↵
But I am not sure how that would be useful ↵
↵
Thank you in adva
nce

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский arshad2117 2017-06-08 19:51:39 10 Tiny change: ',find the occurrenc' -> ',find the number of occurrenc'
en2 Английский arshad2117 2017-06-08 19:43:34 1 Tiny change: 'ou in advace' -> 'ou in advance'
en1 Английский arshad2117 2017-06-08 19:38:44 419 Initial revision (published)