i need an adult
This approach completely would overrides the multiply funciton.
It is as equivalent to not writing the multiply funciton at first place :)
This comment is hidden because it contains spoiler information about the solution
Random tests are fair-sized, maybe you set your recursion limit too low for all of them to pass.
Edit: I see you've completed this kata already so don't mind me.
What is this an enjoyable kata with well written description? xD Good job on this one and whole series.
As far as I know cheating on codewars means bypassing test module as a whole, so hardcoded answers aren't considered cheating, as they only expose weak test suites. I did solve the problem and it is a question of minor tweaks to my code to solve the hardcoded case as well, however I wanted to pinpoint what current tests are lacking.
Well it's not really allowed to cheat in any case.
What I mean are random tests for derivative sum/product/quotient/chain rule, because right now there is only one fixed test and none of random tests include that, thus making implementation of those rules pointless, as one can hard code that test case and complete the kata (as I did).
There are random tests in the JS version.
Could you be more specific what you think is lacking in the tests ?
The test suite for JS is lacking random tests enforcing respecting derivative rules and the only fixed test doesn't encourage (me at least) to do so ( hardcoding at its best x) ). However this kata gave me an inspiration for a little project in the future, so I don't regret putting time to write a solution to the tests.
If you have the time could you possible explain your algorithm for this problem please
approved as test suite looks sufficient, no pending issues, choice of title was explained by author and there aren't any negative votes