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.
just tested 'wqqq' case. indeed it fails.
You are not first who noticed that) At the very bottom of commets you'll see almost the same statement from seven years ago. Nothing's changed since then:) Personally I did't test this solution.
No, It will fail in some cases like s = 'wqqq'.
But I think you're not seeing the forest for the trees here. The approach itself is incorrect (try inputs like
aaab
provided by other commenters); I think that's the main issue first and foremostpurest gold
I've just about done something similar, but my solution needs to be perfected
This comment has been reported as abusive
А зачем используешь оператор расширения в первом выполняющимся выражении ? Вроде и без этого массив "a" можно перебрать reduce'Ом. Why did you use a sprad operator in the first executive expretion? It would work without it, actually.Can you explain it to me?
That's excellant
dude... of course that's clever, but writing adequate parameters names no one called off
Naebka goev
Lord
You have a very weird opinion regarding someone's ego. I guess exactly you show off here
Undoubtedly, you're such a clever person
xD
Loading more items...