3 ms·
What's the use case for this?
by coding_lobster 3y ago
What's the use case for this?
- CJefferson 3y agoLots of mathematical algorithms sort lists lexicographically. It comes up in graphs and lots of other combinatorics problems. Often you want a total order on 2D coordinates, an this ordering is (usually) the simplest and best.