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.
because the "list" function works with strings, but not with numbers
In fact cannot be smaller than 1, not 0. So should be "<= 0", due if in a test you pass a 0º angle it won't enter to the first condition but give you a result anyway, but an angle can't be 0, this is a line, right?
I think because the join() function requires it to be a string.
|| - old and bad solution, need ?? - best and clever.
This is what I ended up with, I massively over-complicated it, shows that reading the description very carefully helps!
This is
n log(n)
time complexity. can't we simply doO(n)
without sorting?This comment is hidden because it contains spoiler information about the solution
that's not really necessary, seeing how it was stated that only positive number would be given...
every time i look answers like this i learn something
i agree with that
This comment is hidden because it contains spoiler information about the solution
last lines should be:
s = int(s)
return s
I like that imperative-style coding)
thanks always thought there must be a better way than comparing values before and after typeconversion
POLSKA GURĄ
Loading more items...