摘要: 算法训练营第一天,训练内容是二分查找和双指针。 704. 二分查找 ``` class Solution { public int search(int[] nums, int target) { int n = nums.length; int l = 0; int r = n; while(l< 阅读全文
posted @ 2022-10-12 13:55 小猫Soda 阅读(57) 评论(0) 推荐(0)