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.
For non-english speakers, it's just a bunch of latin letters.
It's cool to read programs as plain text, though.
I was caught by such unexpected behavior. Should be edited, imho.
Thanks!
That broke all solutions...
Code golf is addictive.
Yep. This approach in JS or PHP is much shorter. I simply translated my solution from it into Python, which works awkward with regular expression. And I believe there was a bug with random tests 4+ years ago that involved removing multiple spaces that made the code even longer =)
There is room to cast it to integers.
We were asked to write a function which takes a non-negative integer that means it would be provided as positive or zero. The rule is simple: Do not expand the scope if no one asks about it.
There was no internet in my childhood, but old book «Arithmetic for entertainment» by Yakov Perelman where I had read about some magic numbers like 2, 5, 9 etc. and had remembered their rules. Actually, any number-1 from its base has some magic.
Simple answer: It can't be explained it's just a given. But you can look on OEIS.
Where?
Then someone would invent the floatiest floaty zero ever.
Nevermind. I saw that authors used backward compatibility trick for function's name but it was for Python.
Just renamed my old solution which has been obsoleted by the function's name changing. Hate that.
The rule is simple: Do not expand the scope if no one asks about it.
Loading more items...