For array with holes, the notion of 'array size' is itself not very well-defined anyway. It really depends on what kind of 'array size' you want for any particular task.
This comment is hidden because it contains spoiler information about the solution
I think the naming was a bit confusing. Why not just make a quick list in the description that maps language to variable name?
I guess codewars doesn't have a way to make a language specific description for the same kata. That would be nice.
added ranomd tests
sure.. Sorry, I forget to add the random tests
Sorry about that! Fixed.
Added a section in the description about empty strings
Could you add some random test cases as well?
Kata description does not mention anything about empty strings being passed in as the first argument and how to deal with them.
I liked the problem but the directions said b->w instead of d->w which had me scratching my head for a bit at first.
Added random tests for JS
Please approve my Python translation. Happy New Year everyone!
Very good catch!
I've rearranged the execution of that code, as well as included separate "duplicate" objects.
Now it's working fine.