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.
After solving all 17 problems, I must say it was enjoyable, interesting, and straightforward. Thank you so much!
While trying to debug my solution I managed to find out that codewars allows for the injection of arbitary HTML via console.log. At least it removes script tags, so there's no immediatly obvious XSS vulnerability here. Still super annoying since it means I'll need to sanitize my own logs now.
For reference here is the log function I used for debugging my solution:
I have added Python (dictionary) to description, please approve: https://www.codewars.com/kumite/666cc1ec00d4037fdbf09722?sel=666cc1ec00d4037fdbf09722
если код в функции реализован в одну строку то можно обоитись без скобок и return
You did not initialize a container to perform the accumulation within. The
reduce
function basically does nothing, you should instead compute the total frequencies using an Object / Map.There should be fixed and sample tests like below:
Michael Michael.
(only 1 valid last name same as first name, still fits in scope since description does not mention otherwise)Michael Burmor Michael Jordan Michael Justin Michael Jackson Michael Phisher
(a sentence consisting of only all valid names)nice
The description must be understandable for foreigners. I spent all my time just clarifying the line “at most 2 times higher than the number”, maybe it’s worth rewriting this line
Please format your code properly as shown here: https://docs.codewars.com/references/markdown/#code-block
I copied the code you posted and I got no such errors. Maybe you modified sample tests accidently?
This comment is hidden because it contains spoiler information about the solution
it would be nice to have a test, that checks if input data not changed
let's code and play AoE. it's ok. Good luck
loll
Fixed in OP's fork
Approved
Loading more items...