Since the random tests were changed to have results to be "round to two decimal places", the (JS kata at least) description is no longer valid : "a and b are integers" is not true for all tests cases ^^
Those are very interesting cases! The basic test cases were a bit intentional in fact, to allow some more creative solutions. Also because it is difficult to precisly describe what is allowed without using a more mathematical language.
There are a lot of potential variations for new Katas based on the same idea.
bro uses english premium
Already raised as issue
Since the random tests were changed to have results to be "round to two decimal places", the (JS kata at least) description is no longer valid : "a and b are integers" is not true for all tests cases ^^
could you explain what is the difference between .? and ., thx.
My pleasure and you might appreciate also the Ruby and Crystal versions of this kata. Cheers :)
I would disagree. This is still a 7kyu
It's not encapsulated at all. When invoking the function normally the
this
keyword will refer to the global object.I used a temp value and feel like a scrub:(
This comment is hidden because it contains spoiler information about the solution
Thanks, that's part of the fun of making katas.
This comment is hidden because it contains spoiler information about the solution
In fact, the testcase is randomly, but someone is lucky sometimes ;-)
A fix testcase added:
Thanks ;-)
Thank you for the suggestion, I changed the random tests.
I agree, it would be nice to have but it's not installed, so we can't use it. You can see for yourself what happens when you try to load cheerio.
Those are very interesting cases! The basic test cases were a bit intentional in fact, to allow some more creative solutions. Also because it is difficult to precisly describe what is allowed without using a more mathematical language.
There are a lot of potential variations for new Katas based on the same idea.
Glad you liked it!
Loading more items...