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.
Hi everyone, I use haskell language.
In random tests, I get a random input string
"((((94.0))-54.98))-89.28-(88.66)+-59.25+75.61+4.88/(44.42)/(79.75)*-60.81*3.72/(19.72*10.46)-58.1/(7.55)*23.37+32.0/(97.63)-(79.92*(1.71-16.82))/(--(28.95)/((55.88/(67.58))))/(69.66)+95.05*(37.3*(5.1*44.66*39.81)-17.23)*80.85+(48.43/(86.06))*(-88.39)/((32.31-31.49*32.76))"
to calc, I get a substring
--(28.95)
, Is that right? I am not found this rule in the description.Java issue: Some cheaters are using base64 encoding to dodge the disallowed word test. We should add "base64" to the list of disallowed words. There is no legitimate use for base64 in this kata.
python new test frameworks
mocha + chai
should be enabledMissing edge cases like this which will invalidate a lot of solutions (including top-voted one)
Description does not mention how to handle cases when the key is not found in the given object
Could you add a C# version to this kata? Already solved it there before seeing that there was no C# option lol
tests need to be much more torough regarding randomness, and assertions should be improved (
test.expect
is used in JS and Python)This comment is hidden because it contains spoiler information about the solution
it is not specified what to do when there are duplicate elements, e.g. should
intersect([0, 0], [0])
return[0, 0]
or[0]
? the author's reference solution in JS, which is the original language, does this:This comment is hidden because it contains spoiler information about the solution
Solutions below (potentially more) should be disabled in Ruby
https://www.codewars.com/kata/reviews/5564d1d017229acdc800003b/groups/56216bc9c56f6efe88000061
https://www.codewars.com/kata/reviews/5564d1d017229acdc800003b/groups/55ca6ee3438a1bcced00006c
https://www.codewars.com/kata/reviews/5564d1d017229acdc800003b/groups/5a670e4e74df2abd26000ea7
https://www.codewars.com/kata/reviews/5564d1d017229acdc800003b/groups/619444406bf868000148106f
https://www.codewars.com/kata/reviews/5564d1d017229acdc800003b/groups/59e86516943fb2789b000d99
https://www.codewars.com/kata/reviews/5564d1d017229acdc800003b/groups/640d24c4830c6400017cd7e9
https://www.codewars.com/kata/reviews/5564d1d017229acdc800003b/groups/636976ae0e9afe00019c1eea
https://www.codewars.com/kata/reviews/5564d1d017229acdc800003b/groups/62752e29e3f82100014361fe
https://www.codewars.com/kata/reviews/5564d1d017229acdc800003b/groups/57d0591042e44e3f2800010b
https://www.codewars.com/kata/reviews/5564d1d017229acdc800003b/groups/58f47fde6fbd722342000131
Hello.
I use the Java language.
The tests pass, but when I try to send the code, writes: "For input string:"+"." Then follows Stacktrace, in which: "Java.lang.numberformatexception: for input string:"+". Next, Stacktrace ...".
My calculator returns 0.0 with a transferred line "+". I don’t understand what needs to be returned to go these tests.
I think that the exception should be returned to such a line: "+". Since this is not a mathematical expression. I think the decision is the correctness of the exclusion. But I can’t fully understand in which form to return the exception.
Who can direct to the right thought, please write?
This comment is hidden because it contains spoiler information about the solution
Java translation
Loading more items...