yfmei
Results
1
comments of
yfmei
一开始就判断 target 是否存在,最后就不用考虑越界的事了。 ```javascript if (target < nums[left] || target > nums[right]) { return -1; } ```