Problem 1060 · Medium

Missing Element in Sorted Array

Find the kth integer missing from a sorted array by binary searching for the last index with fewer than k missing values before it.

Open the interactive visualisation