4 ms·
It's funny because the opposite is often true as well: if you're having trouble solving a problem quickly, randomize the data and try again.
by boothby 1y ago
It's funny because the opposite is often true as well: if you're having trouble solving a problem quickly, randomize the data and try again.
- deleted 1y ago[deleted]
- kibwen 1y agoSometimes these are even the same approach: https://en.wikipedia.org/wiki/Bogosort https://en.wikipedia.org/wiki/Bogosort
- lukaslalinsky 1y agoWell, even PDQ as one of those new sorting algorithms is a fancy randomized quick sort. I'd say these go well together.