Turns out you can calculate N without iterating the whole thing, but by rather taking the cube root or the index. Which makes sense if you consider all the previous patterns with characters from 0-(N-1) would take N*N*N space to use up and we by definition used that up.

No comments:

About Me

I am a thirty something year-old straight white college educated male who likes his odds. --
I'm a liberal atheist with a degree in Computer Science, broad interests, and ... there really should be a good 'third thing' to put here. Oh, well, I'm limiting myself to 30 seconds of thinking about it. -- Don't ever try to list things and toss in a superset like "broad interest".