We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Why do you count nonswaps (or 'swaps with themselves') as swaps?
Since you are counting the "greater than elements" as being non-swaps (even though you are iterating over them) I can't figure out the reason for this.
Running Time of Quicksort
You are viewing a single comment's thread. Return to all comments →
Why do you count nonswaps (or 'swaps with themselves') as swaps?
Since you are counting the "greater than elements" as being non-swaps (even though you are iterating over them) I can't figure out the reason for this.