Merge sort
Sort a vector using merge 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