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.
Update TS version
Oh crap I am blind haha. Cheers.
Your code fails with inputs like this one:
This comment is hidden because it contains spoiler information about the solution
Great solution, you can use
padStart()
instead of the ternary forformatTime()
.const formatTime = (time: number) :string => time.toString().padStart(2, '0')
The type should be:
('n' | 's' | 'e' | 'w')[]
and not:
string[]
as the description of the test describe.
The solution setup should be:
In Typescript.
I let a comment on the translation itself: https://www.codewars.com/kumite/5e015677df8a12001d73401f?sel=5e015677df8a12001d73401f
yeah but in what language?
The type should be :
('n' | 's' | 'e' | 'w')[]
and not :
string[]
as the description of the test describe.
The base code should be :