3 ms·
Store evey state, and if you ever get a state you've already stored you know you're in a loop. Should be possible to store it in very few bytes in "raw" form, a
by m_eiman 17y ago
Store evey state, and if you ever get a state you've already stored you know you're in a loop. Should be possible to store it in very few bytes in "raw" form, and then compress it for good measure.
- jacquesm 17y agohash the state.. even then, if the period is very long it might be problematic