摘要:
正常实现 Input : [1,2,3,4,5] key : 3 return the index : 2 public int binarySearch(int[] nums, int key) { int l = 0, h = nums.length - 1; while (l <= h) { 阅读全文
摘要:
一、双指针 1. 有序数组的 Two Sum 167. Two Sum II - Input array is sorted (Easy) 2. 两数平方和 633. Sum of Square Numbers (Easy) 反转字符串中的元音字符 回文字符串 二、排序 kth element 三、 阅读全文