• + 1 comment

    What happen if q == N, will this solution still work?