Problem 1228 · Easy

Missing Number In Arithmetic Progression

Recover the common difference from the endpoints, then binary search for the first term that breaks the pattern.

Open the interactive visualisation