LeetCode

Search Insert Position

Click here for an explanation.