You need to sign in or sign up before continuing.×
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.
You forgor @throws :c
It's cool but it's not 4 kyu, it's much easier :(
[JAVA] The tests are unclear. test_RollBackAfterReset_ThrowException passes if I throw RuntimeException after a reset, but then random tests don't pass. What am I expected to do? When do I throw this exception? There's nothing about it in the description. Maybe change descirpiton or provide more info about the tests?
UPD: You're supposed to throw exception when the amount of turns to rollback is invalid (including the case when it's more than the total amount of turns in turns history)
Thank you
still why do the methods have to be private
Think of how you would do this (without a computer) and then code it
congratulations on solving, especially if you had no prior experience with reflection :-)
The Java translation was published a few hours ago, this is why there was only 1 solution
Today I learned what reflection is and how to count in binary. Also there are now 2(!) solutions in Java for this kata instead of 1.
Ok, thank you. Will look into it.
there IS a reasonable way ;-)
it's hard to answer without spoiling the kata, but you should carefully look at how the
invoke()
method is documented, and how varargs work in JavaThis comment is hidden because it contains spoiler information about the solution
I wouldn't flag a misspelling like that as an issue, or create one per typo, but anyways, fixed.
"leters" --> letters
"allways" should be always
Loading more items...