Selection sort
Sort a vector using selection sort:
returns the sorted vector arr, based on provided isAscending condition (true
for ascending and false
for descending).
Example use case:
Running
, returns the following output:
Last updated