• + 0 comments

    why did you put ((q+1)<=N) if condition in your code, shouldn't q+1 always be < N