Missing Number In Arithmetic Progression
Recover the common difference from the endpoints, then binary search for the first term that breaks the pattern.
Recover the common difference from the endpoints, then binary search for the first term that breaks the pattern.