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.
You're welcome. CodeWars is not perfect, but it really teaches you a lot more that it seems at first sight. :)
What "it" should be part of the instructions?
If you mean the idea to print your output carefully, than please note that this is not an issue with this kata, but a generally good debugging practice that every code warrior learns at some point, as it is a general issue of the CodeWars platform.
If two things look equals but do not compare, probably they're not equal, and learning to find out how so is a useful programming experience.
Extra spaces before or after the code should be ignored, yes, as stated in the kata description.
And yes,
extra_zeros_handling()
test checks this aspect exactly.I'm leaving it to you to guess how extra zeros are connected to extra spaces.
As of your problem, I would suggest printing the output of your function carefully using
repr()
, orhexlify()
(these two examples are for Python), or some other way in the language you use, or maybe wrap your output in<pre>
tags to make sure HTML output console does not corrupt your printing.