Please check it is wrong or right

in the bubble sort function made by prateek bhaiya
and he started itr from 1 to n-1 which gives us the wrong answer because this left one starting digit

No it is correct.
itr is number of iteration and we are doing it for n-1 times because after n-1 iterations array will be sorted.

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.