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.
TypeScript translation (basically the existing accepted JavaScript translation with type notations added)
Fix for Typescript
Fix for Java
Doesn't matter what the conflict was. Approved.
Hopefully the merge conflict is fixed now, as I cannot get codewars to display to me what the conflict is, and I don't see it.
Meanwhile the description changed so we have merge conflicts. Can you please fork and update to the latest description? Then I will approve.
I may be stupid :P
The name of this theorem in the description is still incorrect. It should be
base2_lead_zero
.Thanks for catching that oversight.
Description:
should be replaced with
For ease of working in an IDE, the entirety of the preloaded section should be in a single codeblock at the end of the description or as a comment in the solution setup.
in the initial code;
in preloaded.
Also:
NATO
The primary perf constraint is the size of the base and exponent, not in how many different bases and exponents are tested.
1000 random tests is already an order of magnitude more than all other languages (including C).
Additionally the range of inputs for base, exponent and modulus is 0 to 2^63, which also exceeds other languages by orders of magnitude.
Since I assume Java isn't the most performant language on CW, even the reduced 1000 random tests should still be enough of a perf requirement.
Thanks!
this would be changing the perf constraint, wouldn't it? => don't use repeated tests, use one single method with a loop on 10000 inputs inside it?
Loading more items...