why the interative loop is started from i=1 why not from any else value
Iterative start from i=1 why?
hi @prajwalsingh226_b93d74431f6edd96,
here u need to check from that card to the first card since when u choose card with i = 0 then you will have j = i-1 = -1
which is not valid so it started with 1 which is the minimum value to start with
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.