Leetcode 35.搜索插入位置

24 阅读1分钟

题目

image.png

image.png

如果找不到target该插入的位置就是最后的left,就是二分查找简单改了一个最后返回值