![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
剑指offer
文章平均质量分 90
木墩儿
这个作者很懒,什么都没留下…
展开
-
剑指offer(三)
在排序数组中查找数字 (排序数组首先想二分法的各种用法) class Solution { public int search(int[] nums, int target) { if(nums.length==0){ return 0; } int i=0,j = nums.length-1; whi...原创 2020-04-26 16:13:19 · 96 阅读 · 0 评论 -
剑指offer(二)
序列二叉树原创 2020-04-23 15:45:21 · 77 阅读 · 0 评论 -
剑指offer(一)
数组中的重复数字 方法一 利用set集合 或者 hashmap 内存占用大 class Solution { public int findRepeatNumber(int[] nums) { Set<Integer> set = new HashSet<Integer>(); for(int i =0;i<num...原创 2020-04-19 22:35:36 · 77 阅读 · 0 评论