Insert Position
Let's solve one basic problem and test our approach. Difficulty Level: Easy
We'll cover the following...
Problem statement
We are given a sorted array of distinct integers and a target value. We will return the index if the target is found. Otherwise, we will return the index to where it would be if it were inserted in order.
Constraints:
- contains distinct values, sorted in ascending order.