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.
This kata does not ask you to write a method.
This comment is hidden because it contains spoiler information about the solution
What should be the output in case input is:
_theStealthWarrior
-theStealthWarrior
and
_TheStealthWarrior
-TheStealthWarrior
?
You should
return
, notprint
.Nobody's argued about the ranking except you. And there's a lot shorter,
O(1)
solution which works for any possible and impossible ages of the father and son, so it's your mistake overcomplicating the task.Fixed it. Thank you.
Fixed it. Thank you.
This comment is hidden because it contains spoiler information about the solution
Java
Java. The age generation is wrong. In the random tests:
What is the programming language?
Fixed it. Thank you.
Random test generates dad younger than son, is it correct?
This comment is hidden because it contains spoiler information about the solution