Search
⌘K

Leetcode 1060. Missing Element in Sorted Array

Given a sorted strictly increasing array with gaps, find the k-th missing integer that does not appear in the array. The core challenge is computing how many numbers are missing up to each index and using that (often via binary search) to locate the interval containing the k-th missing value.

Asked at:

Meta


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late July, 2025

Meta

Senior

https://leetcode.com/problems/missing-element-in-sorted-array/description/ Given an integer array nums which is sorted in ascending order and all of its elements are unique and given also an integer k, return the kth missing number starting from the leftmost number of the array.

Early June, 2025

Meta

Senior

Late March, 2025

Meta

Mid-level

Comments

Your account is free and you can post anonymously if you choose.