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.
It should be false as the 7 in the middle is not on the right nor on the left (It should be ignored)
break if (str.empty? || str.to_i == 0)
This seems wrong aswell... :/ I dont know how to handle exeptions
I got the main right but with error hadling the below code is wrong... What am I missing..?
raise ArgumentError, 'String is empty' if str.empty?
raise ArgumentError, 'String is not numeric' if str.to_i == 0