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.
Sorry for late reply. And, yes, this's an another problem you have to solve it.
Hint: About the error, the decimal places, why don't you find some ways to eliminate them?
here ;)
Wow, you figure it out again! Congrats!!! =]
This comment is hidden because it contains spoiler information about the solution
Congratulations! :D
Apoligize for my mistake,
TooGameCWR.getFullInfo()
is not allowed in real test cases. I missed some argument making it unprotected but now it is. Please try other solutions to complete this kata. :DApoligize for my mistake,
TooGameCWR.getFullInfo()
is not allowed in real test cases. I missed some argument making it unprotected but now it is. Please try other solutions to complete this kata. :DFirstly, the instruction is clear about those are forbidden no matter where in your code. If you can access
'+'
in any other ways, then doing so will be allowed.Secondly, built-in object methods are still available. But to access them, you need to figure out some ways apart from calling by them
.
.Should you have any question, feel free to ask me then.
Happy coding! :D
This comment is hidden because it contains spoiler information about the solution
This is a good solution, but in ordinary coding way. For Shorten Me or other similar types of katas like this, you need to optimize your code a little bit more.
Hint:
return
requires too many characters, avoiding it might be better.You can try some other ways. There are several algorithms playing with integer number.
Hint: Have you tried bitwise operator?
The user's code is checked directly. So, if
+
is used somewhere in the code, it will fail the test. :DThis comment is hidden because it contains spoiler information about the solution
Added! Thanks for the suggestion. :D
Very appreciated! Thank you for your participation in my series. :D
Loading more items...