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.
Elegant. Congrats.
A lot of people think that this kata is easy.
Maybe it is, if you have a CS bacground
. I tried solving this 3 months ago and got stuck. That's only recently that I read about the stack data structure and the solution pricked up in my mind. I think 4ku is the right level for this kata.This comment is hidden because it contains spoiler information about the solution
He's making sure that
count[a]
is a number. You can think of it as a shortcut toNumber(count[a])
.Congrats man, elegant code.