Search⌘ K
AI Features

Search Insert Position

Search Insert Position gives you a sorted array of distinct integers and a target. Return the target's index, or its insertion position, in logarithmic time.

Statement

Given a sorted array of distinct integers, nums, and an integer, target, return the index of target ...