1. Example: [5, 20, -5, 10, 3]
Answer: [5,-5,10,3,20]
Alternative Answer:
After every traversal, the largest unsorted element gets to its final place
2. Example: [-5, -20, -5, -10, 3]
Answer: [-20,-5,-10,-5,3]
1. Example: [5, 20, -5, 10, 3]
Answer: [5,-5,10,3,20]
Alternative Answer:
After every traversal, the largest unsorted element gets to its final place
2. Example: [-5, -20, -5, -10, 3]
Answer: [-20,-5,-10,-5,3]