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.
Does
accumulator == stack
?? If not, how should anything ever be added to the stack? The lack of explanation (for everything) is a big problem.Your last sample test also seems to be broken. The
s
is never pushed to output.It's "least significant bits".
Either the reference solution is wrong, or some information is missing from the description.
Edit: I've looked at your solution, and it is indeed incorrect.
What if it's already less than 5 digits? What if it's 6 digits long?