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.
Well, the code you provided actually counts how many of each char there was. But nvm, it's fine.
i thought that kumite is trying to find max value in a string...was my idea
What does this have to do with this kumite? :/
let s = 'lollipooooop';
var result = [...s].reduce((a, e) => {
a[e] = a[e] ? a[e] + 1 : 1;
return a
}, {});
console.log(result);
Mark your post as having spoiler content next time. Read the kata description again, you only need to change one letter.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution