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.
This comment is hidden because it contains spoiler information about the solution
Isnt it linear complexity O(n)?
O(26×(n+n))= O(n)
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This is still a problem. Example 'solution' demostrating the need for random tests
A problem with your code is not a kata issue:
Read this: https://docs.codewars.com/training/troubleshooting
It looks like you're using a global var.
expected:<1 []minute and 2 seconds> but was:<1 [second1 ]minute and 2 seconds>
Can someone tell, what can be wrong, if I get this kind of an error? In my IDE output is correct.