• + 1 comment

    Complexity for a single Query can be reduced to O(log(n)) by using binary search instead of a linear search.