Tidying Up Some Numbers

\[ \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...