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.
Majority of other's solutions are generating the string of the numbers and then looping (with regexp or regularly) on the digits, thus increasing complexity [big O] to O(n²). With this approach, I CALCULATE all zeroes, based on the position of each digit.
You don't need that map using new ES6 features :) check my solution
This comment is hidden because it contains spoiler information about the solution