Hi,

i am working one below challenge

http://codingbat.com/prob/p197710
i was not clear on below description

(A variation on the sumHeights problem.) We have an array of heights, representing the altitude along a walking trail. Given start/end indexes into the array, return the number of "big" steps for a walk starting at the start index and ending at the end index. We'll say that step is big if it is 5 or more up or down. The start end end index will both be valid indexes into the array with start <= end.

how below results are 1,0,1 each? please advise

bigHeights([5, 3, 6, 7, 2], 2, 4) → 1

bigHeights([5, 3, 6, 7, 2], 0, 1) → 0

bigHeights([5, 3, 6, 7, 2], 0, 4) → 1

if the absolute height differences is >=5, add up 1 to the result

7 - 2 = 5 which matches, being in the "array indexes 2-4"

on 2nd example, array 0-1 does not have such a big step, hence 0

the results could be higher than 1, that's why there is no boolean