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.
thx
This comment is hidden because it contains spoiler information about the solution
Sure, I'll update it to Python once the improved random tests in C++ are done by the author.
Perhaps you should generate more variation in random tests. I would try to include patterns from each of the fixed test batches.
Nope, I will add it if needed.
Did you prohibit some modules in Python?
Thank you for translation.
Python translation
performance
tag could be usedThe lift pattern is a great idea, saving boilerplate and making these dunder methods nice and readable
It should be
When two different Gaussian primes have the same norm, you should specify how to sort them.
added
Special test cases suggestion:
FYI, my
$O(n\log p)$
solution passes in 6 to 9 seconds.Multiplication and division of large integers is not
$O(1)$
so your solution is not really linear. :)My linear solution times out. What is the expected time complexity?
Loading more items...