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.
Nice, Kata. Just done, made me think a little bit. And thanks for changing the description. Continue your work you´re making it very well. Thanks again.
Fork with new description which may be better
thank you very much
Java translation
You're welcome, your question is very useful , you opened my eyes to some understatement of the description, I'll try to fix it
Ok, ok. Now I understand. I will try it. Thanks again.
Thank you very much for your criticism, I will try to correct the condition. Explaining in more detail to kata, there is a sequence of natural numbers starting with some unknown number . (the numbers go in a row) you need to find the smallest number that will fit this condition , it is guaranteed to exist
Sorry, i simple don´t understand the kata. What should I do?
The description says we should find the smalllest number, but the smallest number is always a mono numeric number.
I know i lost something in the description, but I don´t know what, maybe its in the translation to my language, but really I don´t know what do you want.
Sorry
In the other hand, thanks for making katas for people like me.
Someone who understood the question and mapped the answer to a programming language precisely. Kudos!
Very elegant.
That's because your function isn't returning a list.
returning a print statement is the same as returning
None
. so when the site is testing if your output is correct, it is just testing against aNone
value.I think something fails on the kata with Python:
I just print the numbers out.
and see the error:
def two_sum(numbers, target):
return print(numbers)
STDERR
Traceback (most recent call last):
File "/workspace/default/tests.py", line 3, in
test.assert_equals(sorted(two_sum([1,2,3], 4)), [0,2])
TypeError: 'NoneType' object is not iterable
don´t worry, it has a mistake in python, they are trying to solve the problem. Give them some days.
did you include last number?
Loading more items...