摘要: class Solution { //nums[mid]要么在较大一半 //要么在较小一半 //注意范围缩减至两个和一个的时候的处理就行了 public int findMin(int[] nums) { //if(nums.length==1)return nums[0]; int lo=0; i 阅读全文
posted @ 2021-08-01 21:16 wsshub 阅读(31) 评论(0) 推荐(0)
摘要: 优秀题解: 从抛硬币开始,循序渐进把这道题吃透!看不懂算我输! /** * The rand7() API is already defined in the parent class SolBase. * public int rand7(); * @return a random integer 阅读全文
posted @ 2021-08-01 00:43 wsshub 阅读(40) 评论(0) 推荐(0)