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.
approved by someone
Approved some time ago
Hi Klesmus,
Can you please look at some comments above regarding the Java version?
You can install TestNG in Eclipse but I would be mindful of the fact, that its a pain to keep separate from Junit.
Raised https://github.com/Codewars/codewars-runner-cli/issues/182
Marking suggestion as resolved.
Java translation has been approved.
I would think use OutputStream as a nullable parameter with a shortened overload definition. When it's not null, require a flush before an input command is encountered and when the end of execution is encountered while still allowing greedy flushing, and return a String. Then you could just add a few test cases for the OutputStream functionality knowing that the interpreter is otherwise sound.
Seems to be solved right now... sorry for the inconvenient!
I took a brief look at it a week ago. I find it nice that Java already throws exceptions for a lot of the test cases. Meanwhile, I have a suggestion for the translation which I probably should have also given for the Python translation: support actual standard input for the input string (or just any input stream), as well as an output stream (I suppose optionally). That's primarily considering that Java supports I/O.
I didn't figure out the reason of the error because I never had it in CodeWars and also in my PC, but I rearranged the code to be similar in all the tree language available for now. Do you still have the same problem?
The correct answer is 74 zeros, so your script is ok. I tried to recreate your problem with the random function generator but I didn't have the same result, I have to investigate more about that...
Looks great! I merged it in.
Thanks!