Given a sorted array of distinct integers and a target value, return the index if the target is found. If not, return the index where it would be inserted in order.
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.