Find the K Middle Integers Between Two Integers
You are given three integers, A,B and K as arguments. Return the K middle integers between A and B.
Argument K will always be an odd number.
- Must return an array of integers
solve(1,9,3) > [4,5,6]
5 is the median of 1 and 9. Since argument k is 3, we also return 4 and 6.
solve(4,16,5) > [8,9,10,11,12]
10 is the median of 4 and 16. Since argument k is 5, we also return 8,9 and 11,12.