2017年9月9日

35.Search Insert Position

摘要: 题目链接https://leetcode.com/problems/search-insert-position/description/ 题目大意:给出一串升序数组和一个整数,在这个数组中找出整数所在的位置,若数组中没有该整数,则给出该整数应该插入的位置(仍保持有序)。 法一:直接遍历一遍数组,找 阅读全文

posted @ 2017-09-09 16:05 二十年后20 阅读(222) 评论(0) 推荐(0)

导航