Min and Max of numbers

In the lecture, we mentioned a variable i inside the for bracket. What is the significance of mentioning this variable ‘i’ and also, why do we need to update it.

Hey @crunchybanana as you have mentioned variable I, now you have to initialise it with a Starting and ending position. Here you have to treat N numbers. So your i starts from 0 to n.
The reason why we need to update I is because we have to treat n variables from 0,1,2,3,…,n

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.