Leetcode 33 Search in Rotated Sorted Array
Problem:
Analysis:
This question can be transferred as the above figure.
two scenarios: which represent by mid1 and mid2.
Code:
public int search(int[] nums, int target) {
if (nums.length =...
原创
2019-06-13 02:52:32 ·
114 阅读 ·
0 评论