FunctionRacerProblemsRace

Biggest Jump

EasyNumPyPython

Look at each pair of neighbors in values. Return the largest absolute difference between two neighbors, as an int. If there is only one value, return 0.

Example 1

values [2,10,7,1]
returns 8

The jumps are 8, 3 and 6, so the answer is 8.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More NumPy problems