An element of an integer sequence is called a local maximum if it is not smaller than all its neighbors. E.g., all local maximums of the following sequence are bolded.
3, * 4 *, 2, 1, * 3 *, 2, * 8 *, * 8 *, 1, * 4 *
Consider an integer sequence of length 16 whose elements we don't know.
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?
Find (any) local maximum by revealing at most seven of them.
Try it here: https://bit.ly/localmaximum
Bonus question: how would you implement an adversary strategy such that it is not possible to solve the puzzle in less than seven steps?