• + 0 comments

    Can somebody please explain me how we are calculating answers using below line. The result of a query [a, b] is number of integers whose last occurrence in [1, b] is >= a(Last Occurence in [1,b] is in [a,b]).