Comment by thekoma
14 hours ago
Indeed. For a sorting algorithm it would be more insightful to show it test the actual property of something that is sorted: every consecutive element is larger than the previous one (or the other way around). You don’t need a sorting function to test the “sorted” property.
No comments yet
Contribute on Hacker News ↗