Challenge: Arithmetic Sequence

Find the index of an outlier in an arithmetic sequence.

Task

This task requires you to find the index of the first outlier in a given array. All numbers in an array are in an arithmetic sequence, except one number.

Get hands-on with 1400+ tech skills courses.