Tidying Up Some Numbers

Step 1:  [ 4, 2, 1, 5, 3 ] Step 2:  [ 2, 4, 1, 5, 3 ] Step 3:  [ 1, 2, 4, 5, 3 ] Step 4:  [ 1, 2, 4, 5, 3 ] Step 5:  [ 1, 2, 3, 4, 5 ]  \text{Step 1: } \rightarrow \large{ \text{ [ 4, 2, 1, 5, 3 ] } } \\ \text{Step 2: } \rightarrow \large{ \text{ [ 2, 4, 1, 5, 3 ] } } \\ \text{Step 3: } \rightarrow \large{ \text{ [ 1, 2, 4, 5, 3 ] } } \\ \text{Step 4: } \rightarrow \large{ \text{ [ 1, 2, 4, 5, 3 ] } } \\ \text{Step 5: } \rightarrow \large{ \text{ [ 1, 2, 3, 4, 5 ] } }

Which sorting technique is being used above to sort the array?

×

Problem Loading...

Note Loading...

Set Loading...