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.
Sample tests is a joke: a null check isn't even a valid sample test. It doesn't check the basic requirement of the task of a kata.
Also, what does null check add to the kata? Make it even more of a nuisance?
Vampire numbers is a duplicate of https://www.codewars.com/kata/54d418bd099d650fa000032d
Let me add my 2 cents here:
assertEquals
method and useassertFalse
with an appropriate message for element comparison.return all of them; (Means from 1K to 10K).
byreturn all of them in ascending order.
searchNumbers()
.Thanks a lot dinglemouse! Now I understand. This is really useful experience for me! Can I ask you if I'll have some quiestions in programming?
The method does not really need any input parameter to be able to meet the Kata requirement.
So I was only suggesting it could've been something simpler like:
So you mean. I don't need to return the value, cause input value had been already changed in the body of the method and in fact I can operate with it without return. Right?
I want to easily place method with return into input parameters of the other method.
Tell me your opinion and make some suggestions to me please. Thanks!
Thanks for your note. I really mix up the example and main test cases.
Don't understand the purpose of the method having both an input parameter and a return value. One or the other seems redundant.
This comment is hidden because it contains spoiler information about the solution