News for hackers. Stuff that matters.
Re:Data structures and algorithms I actually used while work... by ajuc on Wednesday July 15, 2020 @04:43AM (#23842712)
Most of the time instead of writing or even using sort you're better off using a sorting collection like TreeSet or TreeMap.

No need to sort everything again after adding 1 element.

There are no comments on this comment yet.