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.
Me too :(
This comment is hidden because it contains spoiler information about the solution
Had a lot of fun with this one, specifically getting it in the time limit, had to learn about sieve of eratosthenes. Super satisfying to solve :)
Ok I completely forgot it was days in the year, thank you. :)
but why you replied my comment
Look at these 2 pairs: {90, 105} and {104, 126} - your solution counts days 104 and 105 twice. You need to check if trips are interlapsing and if yes, then only cound each day once.
The whole Knight movement is a jump, not a slide.
I was thinking that the Knight would pause and stop turning direction when he had just caught a pawn.
110 is right answer
you cant sum repeated days
small hint: in your test example are 2 repeated days
Wow this was fun :) nice Kata!
I tried your solution; I don't see problems with null but your function times out.
Hint: days won't repeat
Hi I have been on this problem for a while and I have passed the all the tests except one, I keep getting random characters when it should return null. When I try test it passes when it expects null however when I attempt for some reason it returns these characters even though it should return null. Could someone please point me in the right direction?
I have been having the same issue 337 and 347 arent the first prime numbers with a gap of 10 307 and 317 are both prime numbers with a 10 gap, Im kinda new to codewars can I just change these tests myself and turn it in or what do I have to do?Tested my code keep getting an error saying 110 expected and it got 112 but I plugged the values into my calculator and I got it right? (166 -186) +(248- 262)+ (90- 105) +(7 -23) +(60 -79 )+(104 -126), this is the array that keeps failing is my math wrong, is the test wrong kinda lost.
Loading more items...