3 ms·
I'll spell it out then: you don't always need to sort based on the entire object's value. Comparing the whole object can be pretty expensive when you only need
by tgv 4y ago
I'll spell it out then: you don't always need to sort based on the entire object's value. Comparing the whole object can be pretty expensive when you only need to sort by one field.
- hypertele-Xii 4y agoAnd allocating O(N) extra memory isn't expensive?