Back to General discussions forum
Hello Experts,
My code takes forever to run even though I used pypy3 :-) The code works quite fast for small numbers (less than 10^8)but not for larger numbers. I submitted a wrong answer to submit the code for you guys to inspect. Can you guys please suggest a different approach?
Cheers, Sam.
Perhaps some sort of an online encyclopedia would be useful in suggesting a way not to iterate for every, um, iteration?
Thanks mate! I will find a way :-)
Hi Zelevin, Is this problem fall under any advanced programming concepts? or it just a simple (sorry for the word :-) ) strightforward one. Can you give me a hint please? I noted the word "Celluar Automation" every where. :-)
Cheers.
Naah, it does not fall under any advanced concepts (it is a cellular automaton, but the problem's description covers everything you need to know about that). But do read the Wikipedia article.
Thanks for the tip mate. I noted this :-) "Three distinct modes of behavior are apparent"
Done and Dusted!!! Thanks Zelevin,