2 ms·
So you know which sort to call because there isn't a right answer for all cases. And so you can write your own because you're probably going to want to sort da
by godelski 9mo ago
So you know which sort to call because there isn't a right answer for all cases.
And so you can write your own because you're probably going to want to sort data in a specific way. Sort doesn't mean in numerical increasing or decreasing order, it means whatever order you want. You're sorting far more often than you're calling the sort function.