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.
That may be the gist of the problem, but the problem states 'The string has a length greater or equal to one and contains only letters from a to z.' Adding extra error handling for other symbols and capital letters is not optimal as it's assumed this is already handled before the string is passed in.
Providing invalid characters to the input string is what the problem is all about
Not an issue. The instruction is clear.
If the mouse is out of screen, return double[] { 0, 0 }
Code template updated.
This comment is hidden because it contains spoiler information about the solution
Fixed, thanks!
There are capital letters in the PHP test case, presumably unintended?
Good idea but the description says:
Aren't strings exception when it comes to comparing non-primitive types, so they are compared by value?
Can you explain why you cast to string if it is already a string (since you cast to string only if it is of type string already)?
If it is a string there should be no reason to cast it again to string? and since it is a string when compared to string it is done by value not reference?