Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Program to implement counting sort algorithm in python
- Enter the elements to sorted as spaced integers : 1 2 5 4 7 8 9 6 5 4 3 2 1 5 9 7 5 3 6 5 4
- The list before sorting is :
- [1, 2, 5, 4, 7, 8, 9, 6, 5, 4, 3, 2, 1, 5, 9, 7, 5, 3, 6, 5, 4]
- The sorted list is :
- [1, 1, 2, 2, 3, 3, 4, 4, 4, 5, 5, 5, 5, 5, 6, 6, 7, 7, 8, 9, 9]
Add Comment
Please, Sign In to add comment