![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
剑指offer
辞树 LingTree
这个作者很懒,什么都没留下…
展开
-
剑指Offer 第 5 天查找算法(中等)
剑指 Offer 04. 二维数组中的查找https://leetcode-cn.com/problems/er-wei-shu-zu-zhong-de-cha-zhao-lcof/class Solution { public boolean findNumberIn2DArray(int[][] matrix, int target) { int n = matrix.length; if(n == 0) return false; i.原创 2021-11-03 13:48:26 · 80 阅读 · 0 评论 -
剑指offer 第 4 天查找算法(简单)
剑指 Offer 03. 数组中重复的数字https://leetcode-cn.com/problems/shu-zu-zhong-zhong-fu-de-shu-zi-lcof/class Solution { public int findRepeatNumber(int[] nums) { Set se = new HashSet(); for(int i = 0; ; i++){ se.add(nums[i]);原创 2021-10-30 19:14:52 · 74 阅读 · 0 评论 -
剑指offer 第 3 天字符串(简单)
剑指 Offer 05. 替换空格https://leetcode-cn.com/problems/ti-huan-kong-ge-lcof/class Solution { public String replaceSpace(String s) { String str = s.replace(" ", "%20"); return str; }}剑指 Offer 58 - II. 左旋转字符串https://leetcode-cn.co.原创 2021-10-29 13:23:24 · 2992 阅读 · 0 评论 -
剑指Offer 第 2 天链表(简单)
剑指 Offer 06. 从尾到头打印链表https://leetcode-cn.com/problems/cong-wei-dao-tou-da-yin-lian-biao-lcof/原创 2021-10-28 10:44:01 · 73 阅读 · 0 评论 -
剑指 Offer 第 1 天栈与队列(简单)
剑指 Offer 09. 用两个栈实现队列https://leetcode-cn.com/problems/yong-liang-ge-zhan-shi-xian-dui-lie-lcof/剑指 Offer 30. 包含min函数的栈import java.util.Stack;public class MinStack { Stack<Integer> a; Stack<Integer> b; /** initialize y.原创 2021-10-25 21:52:37 · 3255 阅读 · 0 评论