Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. Quicksort
  2.  
  3. [10 7 5 8 9 2 4 3 1]
  4. => pivot = 4
  5.  
  6. [2 3 1] 4 [10 7 5 8 9]
  7.  
  8. [2 3 1] [10 7 5 8 9]
  9. =>pivot = 1 =>pivot=8
  10. 1 [2 3] [7 5] 8 [9 10]
  11. => [1 2 3] =>[5 7 8 9 10]
  12.  
  13. => [1 2 3] 4 [5 7 8 9 10]
  14. => [1 2 3 4 5 7 8 9 10]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement