Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Sorting Algorithm Cheat Sheet. Parent comment
Generate all permutations of the data. Stop when one of them is in order.
O(n*n!).
There are no comments on this comment yet.
Generate all permutations of the data. Stop when one of them is in order.
O(n*n!).