number of elements greater than k|segment tree

Правка en1, от loverBoUy, 2022-07-31 09:17:07

like say array=[2,3,4,5,6] and query are two types= [1, update,index,val],[2, l,r,val];

for each query of type two , find the number of elements greater than k and for query of type 1 update value of a[index] = val;

please provide code for that

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский loverBoUy 2022-07-31 09:17:07 301 Initial revision (published)