โ† ServiceNow questions

First and last index of an element in a sorted array

Filed under ServiceNow

Given a sorted array of integers and a target element, find the starting and ending index positions of the target value. Return [-1, -1] if the target is not found.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related ServiceNow questions

Collected from public candidate posts and coding forums. Updated Nov 2026.