Can anyone explain!


#1

I have solved this question by recursion can anyone help me to understand iterative method which is written in “Fastest solution” (Python 3)