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 comment is hidden because it contains spoiler information about the solution
easy XD
Maybe it was changed in the meantime? but
Python 3.11
does not accept"- 12"
as anint
.Anyway, spaces have been specified away and tests are now correct for that spec.
this is not basic knowledge
How negative numbers becomes positive? This solution is outstanding
great solution
hell nah
ohmyGOD
ok, that's your opinion, facts tell a different story on performance...
Just because it looks efficient, doesn't mean that it is. Python's built-in functions are implemented in C, which makes them way faster, than this reinvention in python.
Python's standard library functions are implemented in C, so not only is this solution cleaner, it's also significantly faster, than your reinvent-the-wheel solution.
Get ahead with the times, people! /j
I like the ideas of people using sorted and set. I didn't think of that!
oh I just learned how to use "not in" recently but I forgot to apply it.
It has two lines of code less than mine
Loading more items...