A non-recursive solution can still pass the tests like this one
In the description, the third call should replace all values of 2 with 3
The description needs better formatting as well
Python new test framework should be used (Refer this & this for more detail)
test.assert_approx_equals should be used instead
Node 12 should be enabled (Refer this and this for more info)
assert.approxEquals should be used instead
Ruby 3.0 should be enabled, see this to learn how to do it
Thanks, that was fun recursion practice!
\o/ (at last...)
:/ ... Fixed.
Typo in description: For example, the head and tail results of a toin coss are mutually exclusive because they can't both happen at once. -> coin toss
Who's the jerk who put a link into the description that leads directly to the EDIT PANEL of the other kata...?
I suspect you were mutating your inputs, so the resilts for the comparison calculation were not the same when replacement was disabled.
An additional Python test had been added to check for mutation.
Are you mutating the inputs?
So many people doing it like this. Pretty crazy.
This is now faulty for python without replacement
Tests do not adequately check for width = 0.
This is only covered by random tests which means that a solution can randomly pass and fail depending on whether or not it caters for width 0.
So some of the accepted solutions fail.