Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Show HN: New Lisp data structure. Parent comment
* O(lg n) lookup, split, concatenate, random insert/delete
* amortized O(1) push and pop at either end of the sequence
* Caching the value of a monoid reduction of each subsequence. Surprisingly useful.
Trellises are easier to understand, though.
There are no comments on this comment yet.
* O(lg n) lookup, split, concatenate, random insert/delete
* amortized O(1) push and pop at either end of the sequence
* Caching the value of a monoid reduction of each subsequence. Surprisingly useful.
Trellises are easier to understand, though.