..

Pages: 12
closed account (1vRz3TCk)
hithere1234 wrote:
So those who want clarification for them. I will update my question too.

Please stop updating the original question/post. Put updated questions and info in the flow of the thread.
Lol, hithere1234 still hasn't even said what N means.
The problem closely resembles a codechef problem:
https://www.codechef.com/NOV18B/problems/HMAPPY1
Given you were talking about points in the other thread, I'm not going to help you with this, OP, except to say that you're approaching the problem incorrectly. Just reading the input is O(N), but you can perform the queries themselves faster than linear time.
Topic archived. No new replies allowed.
Pages: 12