Practice Problem

Find First and Last Position of Element in Sorted Array

Difficulty: Medium

Given a sorted array and a target, find the starting and ending position of the target value in O(log n) time.