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.
Nice code
Im not on that level of thinking yet. I'll try to study more on how boolean works.
Can confirm this issue in Rust. I was interpreting "below" as "strictly less than" and had a hard time figuring out why my solution was failing the tests. Then I noticed that the case it failed on had the upper limit as a permutation of one of the primes and that the test was counting that:
It sounds like it's the Rust test implementation that's wrong, not the Kata description, based on the fact that the JS version doesn't have this issue. So either the Rust test should be fixed...or maybe the Kata description should just be changed to call out the different expectation for Rust solutions.
This comment is hidden because it contains spoiler information about the solution
wtf, how..
How did you come up with a solution that long, even after deciding to convert to int and back?
Turned it into a code golf kata, as suggested above
Not fixed :( There's a naked "string" in w/o a "std::"
No offense, but if I saw this in a PR, I'd immediately reject lol
added to JS there, so only missing in Haskell
The
pos
range is very important (all submitted solutions rely on the fact thatpos
is not very large). I restored thepos
range in the description.Perhaps try the most basic stuff first and then build up.
Fixed by fork above.
nice kata, maybe a low 4kyu?
edit: oh wait nvm, https://www.codewars.com/kata/5ecef4a6640dbb0032bc176d
wdym not that difficult... I spent a little too long on this kata (~6 hours, with breaks in between)
Loading more items...