robrix / Madness

Recursive Descent Into Madness
MIT License
291 stars 17 forks source link

Count less #101

Closed robrix closed 8 years ago

robrix commented 8 years ago

Avoid counting the input in any. It’s O(n) in forward and bidirectional collections, and we backtrack, which is O(n²), so, ouch.

robrix commented 8 years ago

/cc @joshvera

joshvera commented 8 years ago

:+1: