3

Problem 288 - Langtons Ant

 1 year ago
source link: https://www.codeabbey.com/index/forum_topic/c6bdb9c8c233f6ca03a9aa0e9ad64439
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Problem 288 - Langtons Ant

Back to General discussions forum

sam_bandara     2023-01-11 01:57:48

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.

zelevin     2023-01-11 05:52:32

Perhaps some sort of an online encyclopedia would be useful in suggesting a way not to iterate for every, um, iteration?

Please login and solve 5 problems to be able to post at forum

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK