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.
Got it, and solved. Thanks a lot!
I don't get what a k-prime is, honestly. If it is 1-inclusive, isn't 6 a 3-prime, and isn't 8 a 2-prime? If it is not 1-inclusive, aren't both 4 and 8 1-primes?
4: prime factors -> (1,) 2
6: prime factors -> (1,) 2, 3
8: prime factors -> (1,) 2
What does
counted with multiplicity
mean?Did you finally debug it? Because I have the exact same issue with Python.
I pass all sample tests, though.
The above is my result.
This is the reference result. So far, I've mostly overshot by 2 points, and always at the first alien to hit. :/
EDIT: My bad. I didn't read the hit-sequence instruction properly.
This comment is hidden because it contains spoiler information about the solution
Why the hell is this a 3kyu? This is 5-6.
I can't see my solution in the solutions list, even though I can see the others. :|
That was definitely fun. Spent a whole day.
Pretty straightforward algorithmically. But it was tedious and the debugging process was long. 2 kyu!
I think you can make it more challenging by testing more invalid expressions.
Thanks for this!
My bad... thanks!
-(-2+3^2)^(5-3)*2
this expression expects -98.0.Tell me if I am missing something here:
Any even-power of a negative number would be positive.
This comment is hidden because it contains spoiler information about the solution
Solved it!
This comment is hidden because it contains spoiler information about the solution
After a bit of hair-pulling, the answer turned out to be quite easy.
Now, to do it in Java!
The test cases are wrong for all even sizes > 2. You should use the above code just before you return the answer.
This is not a spoiler - this is an essential piece of code to finish an annoyingly buggy kata, even if your code is correct.
The test cases are wrong for all even sizes > 2. You should use the above code just before you return the answer.
Loading more items...