if the given array is equal [9,9,9], the answer should be [1,0,0,0]. Because of this, to [0,0,0], you must add .
By the way, could you please explain how BigIn() works in your solution? Looks very interesting
Can you please edit the writing part? It is pretty ugly and confusing. It can be done better. :)
As a sugegstion you could preload the houses array so people don't need to copy paste it in the code
this blow my mind
Where does he ask that? He sets up a recursive relationship with a single integer input. Would you consider factorial(x) to be a map/filter/reduce kata?
Thanks for the feedback. They're pretty random now
Thanks! now the js test cases doesn't use assert.deepEqual instead they use assert.closeTo
The issue is not the possible use of map/filter/reduce functions, but the fact that the author is asking to write a for loop mapping/filtering/reducing something.
I understand that you could use map/filter/reduce, but I don't think that is the only, or even easiest way.
It seems a bit pedantic to be marking an issue, just because certain functions/tools could be used to solve it.
Random Test is Not random enough.
additionally, beyond that:
ReferenceError: assert is not defined
at Context.<anonymous> (test.js:9:5)
at processImmediate (internal/timers.js:461:21)
Trivial map/filter/reduce is not a novel kata idea.
A ')' too many at the end.
Maybe this will be helpful: https://docs.codewars.com/authoring/kata/floating-point/#howto-work-with-floating-point-numbers
js sample tests are broken