why we use n-1-itr in the inner loop of bubble sort?
why not just n-1?
Bubble sort implementation
@rockstarpkm hi please either share the code snippet you are reffering to, or ask the doubt under the relevant section.
why we use n-1-itr in the inner loop of bubble sort?
why not just n-1?
@rockstarpkm hi please either share the code snippet you are reffering to, or ask the doubt under the relevant section.