question : BGQRS Problem - CodeChef
my solution : (N * sqrt(N)) : CodeChef: Practical coding for everyone
my solution was failing only the last case…i know that manyone have solved this using sqrt decomposition, so, it’s possible but i cannot able to optimize it further can anyone please help me !