pls explain me the ( n-2 ) , ( n-3) , ( n-4 ) , etc for following iterations
CPP - Bubble Sort
in first iteration u have to compare n-1 after this last element will be in right position
in 2nd iteration n-2 u have to compare after this last 2 element will be in right position and so on
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.