Let say you have input array equal [50, 100, 70] and a max distance is 30. The recuresive function will result with 0, but this kata expect null in such scenario.
[50, 100, 70]
30
0
null
This comment is hidden because it contains spoiler information about the solution
The program gives you the internal measurements of the frame, but you really need to find the external measurements.
Loading collection data...
Let say you have input array equal
[50, 100, 70]
and a max distance is30
.The recuresive function will result with
0
, but this kata expectnull
in such scenario.This comment is hidden because it contains spoiler information about the solution
The program gives you the internal measurements of the frame, but you really need to find the external measurements.