I am learning SQRT Decomoposition and solving related problem, but after a certain test cases my code is exceeding time limit, How can I optimize this code?
I am learning SQRT Decomoposition and solving related problem, but after a certain test cases my code is exceeding time limit, How can I optimize this code?