Max-Min Difference in an Interval

  • + 0 comments

    It can be solvable with two pointer and RMQ(Sparse table) in N*Q complexity.