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.
Ternary operator ? is not necessary. Comparison always returns boolean
This solution will not work with
'12/21/33 12:21'
, which were specified in task description. So i guess it's not valid. As well as codewars tests LOLI suggest to clean the string from non-letter characters with regex first
wait where is the loop
This comment is hidden because it contains spoiler information about the solution
no need for ternary operation here
like to downvote
Where's the
sum
variable declared? Or it never has?This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Becuase there is no 'length' propertie for Sets