Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on SQLite small blob storage: 35% Faster Than the Filesystem. Parent comment
f = open("/path/to/file"); // do something with file
d = opendir("path/to") while((dent = readdir(d)) != NULL) { if(!dent.name.startsWith("file")) continue; // do something with first matched entry }
The latter is always O(n)
The latter is always O(n)