WHILE(I<N-1) to compare i with n

in this i is up to n-1 or before n-1

unique nomber wale me i<n-1 tak compare kr rahe hai ye samajh nahi aa rha hain like i<n mtlb ye concept bta dijiye

@Ds_aizen if the loop is like while(i < n-1) then i will go upto n-2 only.

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.