Needs way stricter character limit to be of interest.
This is basically an easier version of this kata.
It's also just one extra line than most Fibonacci katas.
Translations welcome!
You can modify the input.
No you can't. Even if you could, it should be forbidden; modifying inputs is bad bad bad.
Note that b can be greater than a.
b
a
This doesn't make much sense. It would be much more helpful to specify that a can be greater than b.
list
missing "non-empty"
In description says return the smaller number if 2 numbers are same distance from n, but right now asking for the one appear first.
n
Loading collection data...
Needs way stricter character limit to be of interest.
This is basically an easier version of this kata.
It's also just one extra line than most Fibonacci katas.
Translations welcome!
No you can't. Even if you could, it should be forbidden; modifying inputs is bad bad bad.
This doesn't make much sense. It would be much more helpful to specify that
a
can be greater thanb
.missing "non-empty"
In description says return the smaller number if 2 numbers are same distance from
n
, but right now asking for the one appear first.