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.
Good kata, not hard to solve but to understand. Maybe a better description of the requirements would help.
Nice kata, I would fix the bad typos in the description of the problem :)
^_^ ixi pixi
True, I've realized it at the end when the tests failed, but simply adding some if == '0' fixed it.
This comment is hidden because it contains spoiler information about the solution
Consider using:
if [ -z ${1: } ]
Great explanation here:
https://stackoverflow.com/questions/3601515/how-to-check-if-a-variable-is-set-in-bash
Leave an empty space after "colon" it will be for null or empty, refeer for the table:
http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02