Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Solving dynamic programming interview problems. Parent comment
If the naive solution is O(n!) then describing an O(n^2) solution is perfectly acceptable.
If the naive solution is O(n!) then describing an O(n^2) solution is perfectly acceptable.