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.
IMHO task is not clear
this kata should be more complicated
stupid instructions...
oooo now, I see. I'm sorry. I was guided by examples. I would be careful.
Can you add some examples from hard part like this --> cat!balloon2; fun! make_metallica_great_again#
--> cat!b5n2; fun! m2e_m7a_g3t_a3n#
btw, nice kata!!
mmmm.. I think instructions are not complite. There is implicit nuance,
phrase can be separated by digits, etc. Solved in forehead mode))))
the same thing
Traceback (most recent call last):
File "main.py", line 46, in
Test.assert_equals(triangle_type(a, b, c), tt(a, b, c))
NameError: name 'tt' is not defined
OMG I think you so complicate things.
Realy sorry, I was wrong. Have a nice what ever you have...
I'll check again. Sorry
I wrote that case in my 1st message. The input test number was 100!!!!!! And most obvious answer must be 100, then 81, and only then 121.
nearest_sq(100)
3.121
But correct answer was 121.
by the way English is not my native.
could you be my mentor?? Please...
Ok. Thank you!
This comment is hidden because it contains spoiler information about the solution
I dont understand you((( The Task is:
Find the nearest square number, nearest_sq(n), of a positive number n.
81 is the nearest square number to 100 not 121!!!! Am'I right??
mmmm I'm not sure, but when the n-number is 100, is the nearest square number is 100? ok, if not, but why your answer is 121???
121 - 100 =21, at the same time
100 - 81 =19.
Loading more items...