This kata is terrible, and should not exist. Everything, starting from stupid possible inputs, and ending with a fixed test which MUST be hard-coded (unless you're a magician, and your solution returns the same result as the reference solution up to 16 decimal places) is an absolute disaster.
TypeError: Cannot read property 'caller' of null
at /runner/frameworks/javascript/cw-2.js:159:11
at Promise._execute
at Promise._resolveFromExecutor
at new Promise
at Object.describe
at Object.handleError
at ContextifyScript.Script.runInThisContext
at Object.runInThisContext
The anti-cheat did work but codewars changed how it works so now there are different methods of checking whether a symbol is in the solution code.
The ridiculous input obfuscation increases the katas difficulty I don't see a problem with that.
Maybe if you're having trouble with off-by-last-digit errors make a suggestion to make the kata more lenient but 11 people have solved this kata before.
Reinforcement Test Cases:
TypeError: Cannot read property 'caller' of null
at /runner/frameworks/javascript/cw-2.js:179:21
at Promise._execute
at Promise._resolveFromExecutor
at new Promise
at Object.describe
at Object.handleError
at ContextifyScript.Script.runInThisContext
at Object.exports.runInThisContext
Between that (I have no clue what's going wrong or how to fix it, even after forfeiting and looking at the test case), ridiculous input obfuscation and endless off-by-last-digit errors, I have given up on this kata. And you should not name functions with an initial capital either.
This is just hell
It was a useful Kata. Now I know that
localeCompare()
does not work correctly with punctuation marks.The description says nothing about ignoring
"\n"
.This kata is terrible, and should not exist. Everything, starting from stupid possible inputs, and ending with a fixed test which MUST be hard-coded (unless you're a magician, and your solution returns the same result as the reference solution up to 16 decimal places) is an absolute disaster.
Fixed.
I fixed the random tests (they were working incorrectly). I also clarified what is actually being expected (floored towards zero).
Fixed ;-)
Fixed
TypeError: Cannot read property 'caller' of null
at /runner/frameworks/javascript/cw-2.js:159:11
at Promise._execute
at Promise._resolveFromExecutor
at new Promise
at Object.describe
at Object.handleError
at ContextifyScript.Script.runInThisContext
at Object.runInThisContext
Quite challenging ! Thanks man.
Same problem like Johan described...
The anti-cheat did work but codewars changed how it works so now there are different methods of checking whether a symbol is in the solution code.
The
ridiculous input obfuscation
increases the katas difficulty I don't see a problem with that.Maybe if you're having trouble with
off-by-last-digit errors
make a suggestion to make the kata more lenient but 11 people have solved this kata before.It's .. not working perfectly.
Between that (I have no clue what's going wrong or how to fix it, even after forfeiting and looking at the test case), ridiculous input obfuscation and endless off-by-last-digit errors, I have given up on this kata. And you should not name functions with an initial capital either.
Not even marking an issue.
Description might clarify how to sort non-alphanumerical characters and how to handle whitespace.
Capitalized functions normally indicate that it's a constructor function. :)
Good kata.
Loading more items...