摘要:
class Solution { public int binary_search(int[]nums,int left,int right,int target){ int mid=0; while(left<=right){ mid = (left+right)/2; if(nums[mid]> 阅读全文
posted @ 2020-10-02 08:53
dlooooo
阅读(160)
评论(0)
推荐(0)
摘要:
class Solution { public int maxProfit(int[] prices) { int res=0; int MinPrice = Integer.MAX_VALUE; int len = prices.length-1; for(int i=0;i<=len;i++){ 阅读全文
posted @ 2020-10-02 08:22
dlooooo
阅读(117)
评论(0)
推荐(0)
浙公网安备 33010602011771号