Problem 1064 · Easy

Fixed Point

Find the smallest index whose array value equals that index, or report none. A binary search narrows the range using the comparison between value and index.

Open the interactive visualisation