Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on I have complicated feelings about TDD. Parent comment
All sort methods can and should be tested with the same tests, that assert that unsorted input is converted to sorted output.
Choosing heapsort for performance reasons should normally not affect your test suite at all.
There are no comments on this comment yet.
All sort methods can and should be tested with the same tests, that assert that unsorted input is converted to sorted output.
Choosing heapsort for performance reasons should normally not affect your test suite at all.