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.
okay, it seems that the translator fixed the original translation, but this has no effect on the kata. i guess this is the reason for the useless double use of
Math.abs()
I cannot approve yet, the author is active :(
gotta wait 7 days...
It seems that you edited this fork post-approval to fix the issues i raised. I'm letting you know that this has no effect on the kata; post-approval you need to either use the
edit
button on the kata, not the translation to enter the kata editor, make your changes and re-publish the kata; OR make a new fork (preferably using the kata'sfork
button since it pulls the up-to-date version, instead of forking the translation that may be obsolete) and submit it for review/approval.I know it's confusing, and it's an oversight that Codewars allows us to edit a fork post-approval since it's useless and confusing, but that's the way it is.
Might not be perfect but the sooner we can fix it the better
List
import)Fork with following changes:
Scrutinized tests with order and name annotations
Added useful assertion messages
Changed input from
double
toint
to comfront with description:Updated to latest version (Java 17.0)
Hello, thank you for the Java translation. I would like to approve your work, but I get the error message "Description cannot be approved, recent changes from related record must be merged first."
Is it because of the changed description? How can I accept the changed description?
hi, sorry for the massive delay. can you add the new sample test changes for string ops? this looks good for a merge otherwise.
//TODO
can be removed from full test suite.null
or empty string) to make the setup compile.Approved
1
,-1
,Integer.MAX_VALUE
and something likeInteger.MIN_VALUE + x
.Random
class with proper API. No need for JS-yMath.random()*a+b
.Nice job! i solved it in a similar way.
Hi.
I made a change to ensure that an error of 1E-10 or less is considered valid.
There was a small chance that it would not pass in the tests or your solution.
instead of:
I made these small changes because there were times when, even though the square roots were in the same direction in both cases, the test didn't match those roots within the margin of error and gave a slightly different result. This change fixes that, and in 100000 tests performed, there is consistency.
Best regards.
Why do I think that's not 6 kyu? I think it is 4kyu.
Elegant solution, me likes this
I just edited it myself and also updated to JUnit 5.
Loading more items...