AMMDI is an open-notebook hypertext writing experiment, authored by Mike Travers aka mtraven. It's a work in progress and some parts are more polished than others. Comments welcome! More.
This is the first per-problem page I'm making, might be
Made several stabs at this but run out of energy, too much fiddly stuff with fencepost errors, fixing it doesn't seem fun.
I'm doing my usual very straightforward brute force thing, if there is a cleverer way I haven't seen it.
The trick here will be memoizing, once the basic slide mechanics are working.
My solution, if it ever works, will be wicked slow. Might need to switch to Java arrays.
I suppose I should do it in Python for practice. Huh that's an idea. It's more of a Pythonesque problem anyway. The array stuff would be easier, the memoization harder.
Also trying out Clerk, because repl is being stupid. Also Emacs is a fucking disaster.
OK, got slide left working, need to generalize to other 3 dimensions
Argh, finally finished, but that was a struggle of tedious small tasks. The obvious bit was not doing default memoization but instead cycle detection. Duh.