This is an old blog post I sat on for years because it's ultimately incomplete... but I still think it's interesting even incomplete, so here it is.
74 karma · joined March 5, 2014
Can you submit a solution then?
I'd make a solution which resets the state linked by the table though, so please submit one!
min(1, 2, out);
return out;
to be condensed into one line.