3 ms·
Because the sort is done, not when all memory is sorted, but when there's a memory region large enough to malloc. The comparator here is "used" or "empty", whe
by samatman 9y ago
Because the sort is done, not when all memory is sorted, but when there's a memory region large enough to malloc.
The comparator here is "used" or "empty", where "used" is either > or < "empty".