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.
Thank you the reset button did solve the issue, and I marked the post as an issue because for me the kata was not working
It's possible he's loading an older cached version of the sample tests. If you're still having a problem, hit the reset button under the sample tests and make sure the language version in the dropdown at the top of the page is the latest version of node (currently node 18). Make sure to copy your code before you hit the reset button, as the reset button will delete any code you have typed.
also; I just solved the kata in JavaScript (your language) by translating my Python solution, so the kata is working fine in js
if you don't know what's wrong, post as a question, not an issue
(issues are only for when the kata doesn't work)
I don't know what is the problem I get
'STDERR assertSimilar is deprecated, use assert.deepEqual'
after trying everything I gave up trying to solve this kata and even if I add the exact same solutions in here I get the same error, what is wrong?
Enabled in this fork
Enabled in this fork
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
Loading more items...