This is actually more of a math question. I need to find the largest palindrome that's the product of two 3-digit numbers. For this my initial solution was a standard double loop with both i,j initialized to 999, where 'i' didn't decrement until 'j' hadn't decreased all the way down to 100. I quickly realized this method did not ensure I 'meet' the palindromes in a decreasing order like I wanted, and that instead I must decrement the indices alternately. My question is, why is that the case? I KNOW that for a product x = bc to decrease as slowly as possible, I need to decrement b,c alternately, but I don't understand WHY that is. I am looking for a theoretical explanation, be it a formal proof or something intuitive.
EDIT: after some of the comments, I feel I should re-write my question: I thought that by decrementing my indices alternatively, I would be decreasing my product by as little as possible every iteration, thus guaranteeing I meet the HIGHEST palindrome first, thus allowing for my code to finish as soon as I meet the first palindrome. Is this not the case? Thank you