3 ms·
> If the elements are already the program will perform fewer operations. On the contrary, if the items are in reverse order, it will require more swap operation
by 208Gi 8y ago
> If the elements are already the program will perform fewer operations. On the contrary, if the items are in reverse order, it will require more swap operations to get it sorted.
I think you're missing a word in the first sentence.
- adriansky 8y ago`sorted` was the missing word. > If the elements are already sorted the program...