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.
The numbers are actually correct
The kata is vulnerable to simple exploits like this:
(https://www.codewars.com/kata/reviews/65f8713d2a5c600001d40e8a/groups/66a7f0443fd52196719dc60a#66d498d675252935bab4bdbf)
This is an attempt to fix the issue by converting
Tester
to a function factory.That's probably because the kata was changed after this fork was published (fixing Kayleigh's issue above).
I republished the fork: https://www.codewars.com/kumite/66d71fe89cee54b0364ef568?sel=66d71fe89cee54b0364ef568
Python: Kata is vulnerable to certain exploits.
Details and proposed fix: https://www.codewars.com/kumite/66d5bb6300f911da4ce22e12?sel=66d5bb6300f911da4ce22e12
The kata is vulnerable to simple exploits like this:
(https://www.codewars.com/kata/reviews/65f8713d2a5c600001d40e8a/groups/66a7f0443fd52196719dc60a#66d498d675252935bab4bdbf)
This is an attempt to fix the issue by converting
Tester
to a function factory.Attempt to solve this with function factory: https://www.codewars.com/kumite/66d5bb6300f911da4ce22e12?sel=66d5bb6300f911da4ce22e12
Isn't that technically cheating?
In computing, the modulo operation returns the remainder or signed remainder of a division, after one number is divided by another (called the modulus of the operation).: https://en.wikipedia.org/wiki/Modulo
Your solution is too slow.
@seika-afk The question is "How many digits?", so just count the digits :)
This was super satisfying, thank you!
At first I found a "simple" soultion that barely passes under 12s, but then it dawned on me in all its simplicity. It's like climbing a mountain in the dark to see the sun rise behind it.
Nevermind, the problem you experience is because you're mutating the original list.
Make a copy of
l
to fix your problem.If so, please do the following:
If there is an issue, someone might come and fix it. However, it's just not possible to fix "a problem" in unknown language.
Python: Something must have changed on the Leaderboards page since the tests expect not 0-based, not 1-based, but 2-based indexing.
I think it would be best if both reference solution and tests were updated to use specialized tools (BeautifulSoup?) to prevent this from happening again.
The description needs to be reworded. Angles can not be perpendicular or parallel to each other, this is not how geometry works. Angle planes can be perpendicular or parallel to each other, but that's a whole different problem in three dimensions.
I suppose you mean something along the lines of "Angles
a
andb
combined form a right angle".Loading more items...