Hackerrank – Sherlock and Squares
Hackerrank – Problem Statement A description of the problem can be found on Hackerrank. Solution We have to prevent timeout, because there is big upper constraint. For a given numbers a and b we can find out all square numbers with formula: . There is a special case when a and b are […]