You are viewing a single comment's thread. Return to all comments →
It can be solvable with two pointer and RMQ(Sparse table) in N*Q complexity.
Seems like cookies are disabled on this browser, please enable them to open this website
Max-Min Difference in an Interval
You are viewing a single comment's thread. Return to all comments →
It can be solvable with two pointer and RMQ(Sparse table) in N*Q complexity.