35. Search Insert Position

Example 1:

Input: [1,3,5,6], 5
Output: 2

Example 2:

Example 3:

Example 4:

思路:

latest version

Last updated

Was this helpful?