The worst kata on this site include hidden, obfuscated or omitted requirements. Unfortunately, this kata falls squarely into that category. Please note up front regarding how the algorithm handles spaces. In addition, it would help it if the "gotcha" tests were included in the test suite to begin with to prevent unnecessary submissions.
Is there anything similar that doesn't lean so heavily on underscore? I don't mind learning more about underscore, just looking for something more focused on native javascript.
I'd recommend downgrading the difficulty of this kata to 8kyu.
This comment is hidden because it contains spoiler information about the solution
There was a floating point error that was mucking up the whole thing. Calling
round
on the results fixed it.This comment is hidden because it contains spoiler information about the solution
The worst kata on this site include hidden, obfuscated or omitted requirements. Unfortunately, this kata falls squarely into that category. Please note up front regarding how the algorithm handles spaces. In addition, it would help it if the "gotcha" tests were included in the test suite to begin with to prevent unnecessary submissions.
I hate writing my own tests, the best kata are the ones with a few tests written in advance
Is there anything similar that doesn't lean so heavily on underscore? I don't mind learning more about underscore, just looking for something more focused on native javascript.
This comment is hidden because it contains spoiler information about the solution
Initial test case tried to call word_Search or something similar. Please review the test criteria.
This comment is hidden because it contains spoiler information about the solution