Hi,
Can anyone help me with this problem?
You are given an array with n integers ai , a integer K and m queries.
There are two types of query:
give you two integers l and r and ask you how many integers of al, al + 1, ..., ar are equals to K.
give you three integers l, r and v and ask you to add the value of al, al + 1, ..., ar by v.