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.
Use spoiler flag next time.
This comment is hidden because it contains spoiler information about the solution
But this is not meeting the Empty string condition of returning '0'
Your solution passes all tests (sample test and full test suite).
I can't remember where i've picked this up. All i know is that it works!
It's called typing, or type annotation; read more about it here:
https://docs.python.org/3/library/typing.html
It's not enforced, and AFAIK not much used in Python, but it's used in other languages.
this should help some
The line you wrote has a wrong size for resulting string.
Did you initialize an array with the right total size?
In regular Python, when assigning iterables, you need to have the same size on both sides of the
=
sign.In case you want to test it, my solution works with both Python 2 & 3.
Answer function is called by
Solution.main()
.Not an instance method, but a class method
I'm not remotely good at Phyton.. but I'll try to help you. ¿Dues your program writes hello world and only that?