number of elements greater than k|segment tree

Revision en1, by 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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English loverBoUy 2022-07-31 09:17:07 301 Initial revision (published)