Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Why Linked Lists Are an Interview Staple. Parent comment
This would solve your problem in any realistic use case and you'd never even recognize a constant space solution was possible.
There are no comments on this comment yet.
This would solve your problem in any realistic use case and you'd never even recognize a constant space solution was possible.