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.
Good Kata for repeating Switch-case on Java
I think it's not a 7kyu..
After hitting the "ATTEMPT" button I receive the following error message after successfully completing and "Passing" the first 13,021 Random Tests?
It appears that the test results output from this kata is exceeding the maximum size of the Codewars output buffer. Is there a reason that you require so many random tests?
Thanks. Helped a lot!
Because you receive that info as the third argument of your function. Sorry if that's not what you asked.
How am I s'posed to know either to multiply or divide or any other arithmetic
Scala Translation
That's for Java, right? There is an open issue below.
The description states that 5/2 should return 2.5, but the return type is int.
Approved
Factor translation
This is not a kata suggestion (= suggestion of improvement of the kata).
Now also try to do also it without any actual arithmetic operator (+ , - , * , / ) nor if/else nor switch/case in your code
best solution thanks to Java God forsenCD
Oh, these synthetic tasks... The condition says "a and b will both be positive integers". But in the sample: "5, 2, "divide" -> 2.5". To get 2.5, you need to translate the variables into float32. I did it, and as expected, did not pass the test. It is necessary to describe tasks more carefully.
^^
Loading more items...