文章

草祭の博客

每日Leetcode02

35. Search Insert Position tags. Array 向有序列表里找到需要插入值的index,且You may assume no duplicates in the array. Example 1: 1 2 Input: [1,3,5,6], 5 Output: 2 我的Solution: 1 2 3 4 5 6 class Solution: def searchInsert(self, nums: List[int], target: