3 ms·
More crazy sorting techniques from a recent reddit thread: https://redd.it/9s9kgn https://redd.it/9s9kgn Highlights: - GenghisKhanSort: delete all elements ex
by forgot-my-pw 8y ago
More crazy sorting techniques from a recent reddit thread: https://redd.it/9s9kgn https://redd.it/9s9kgn
Highlights:
- GenghisKhanSort: delete all elements except for the first, repopulate the list with successors of the first element
- HitlerSort: Choose an element in the list you think is the best, then loop through the list removing any element that does not match.
- ThanosSort: delete half the array. The arrays may or not be sorted, but it'll help for future sorting
- TrumpSort O(0): the array is always sorted. Anyone who says otherwise is fake news.