In this question, why did we stop evluating possible values after getting one success case?
- We could have also tried different values for y, starting from y = 1
In this question, why did we stop evluating possible values after getting one success case?
x and y are perfect squares. If you start with x, then you’re just checking positive perfect squares less than 21. You then come to learn that among 4 possible candidate values of x, only one of them works.
There’s no reason to check values of y as well because by exhaustvely considering all values of x, you’ve indirectly also exhaustively checked all values of y.