Hoarding programming problems for you!

Looking for good programming challenges?

Use the search below to find our solutions for selected questions!

Search for a range challenge

Sharing is caring!

Problem statement
Given an array of integers sorted in ascending order, find the starting and ending position of a given target value.

If the target is not found in the array, return \left[-1, -1\right].

Sample input

Sample output

Solution