How to solve this problem. ↵
↵
Given an array of N integers and we have to perform two type of queries ? ↵
↵
1: L,R,K --> find sum of values in range L to R which are less than K ? ↵
↵
2: A,KM --> update value at positon ath index to K i.e arr[A]=KM; ↵
↵
N,Q <=1e5.
↵
Given an array of N integers and we have to perform two type of queries ? ↵
↵
1: L,R,K --> find sum of values in range L to R which are less than K ? ↵
↵
2: A,
↵
N,Q <=1e5.