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.
Its not bad.
Just remember to make your code easy to understand to others.
Also try not to repeat yourself. You are calculating 3 times the where the half is.
Instead you can make a specific variable for it at the beginning solving both of your problems.
Someone can give me feedback about my solution?
Someone can give me feedback about my solution?
Is checking for null or returning string smaller/equal 4 must have?
I did code like this and it has no error with empty string and properly showing 1-4 character strings