for some reason I just couldn't get console.log() to work in Javascript. (Probably something really obvious). Had to use C++ instead. Otherwise a simple and fun Kata.
Honestly while I appreciate the math exercise, this problem has an optimal solution with nothing to do with coding.
This is especially problematic with SQL as people not seeing the pattern can easily get into cte/functions to loop for the answer and I think that would put this exercise way above 7kyu.
for some reason I just couldn't get console.log() to work in Javascript. (Probably something really obvious). Had to use C++ instead. Otherwise a simple and fun Kata.
if the desired height is 4, and the plant grows by 10 everyday, then the plant would reach the desired height on the first day, therefore expected 1.
Honestly while I appreciate the math exercise, this problem has an optimal solution with nothing to do with coding.
This is especially problematic with SQL as people not seeing the pattern can easily get into cte/functions to loop for the answer and I think that would put this exercise way above 7kyu.
This comment is hidden because it contains spoiler information about the solution
This is a Kata with really ambiguous wording on what it wants from you.