Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
When writing
x * b'\0'
, if not mistaken,memset
is used to set one unique value to multiples addresses.The given value is directly written at the correct addresses, no intermediate values involved.
This comment is hidden because it contains spoiler information about the solution
If it let you sleep better, I will just not post any solution anymore. I solved most of the katas, especially the more difficult ones like this one mainly for myself, not to "cheat" you or anybody else, and even if you don't believe it, I learnt alot from it. I think, I was sitting like 2 weeks on this solution and was very happy, when I (not ChatGTP) got it to work at the end...
Again... Just because I let AI format my program and let it generate comments doesnt mean the whole programm is generated by AI...
Just because I let AI format my program and let it generate comments doesnt mean the whole programm is generated by AI...
maybe using bitarray
Is it even possible to beat without using numpy?
Python version is ridiculous
There are ways to check for memoization, but they're generally quite hacky.
Also, I'm pretty sure that it's literally impossible to pass the Python version in any way other than sieving ahead of time (unless there's a way to go significantly faster than
gmpy2.next_prime
).Approved
Approved.
nah, a Captain sinks with his ship.
This comment is hidden because it contains spoiler information about the solution
Approved by author
This comment is hidden because it contains spoiler information about the solution
Loading more items...