上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 48 下一页
摘要: 原题: https://leetcode-cn.com/problems/binary-tree-zigzag-level-order-traversal/ 思路,如果无从下手,先要了解二叉树的广度优先遍历 BSF : https://www.cnblogs.com/Jomini/p/1203202 阅读全文
posted @ 2019-12-12 23:53 李荣先辈Java 阅读(89) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/XTAOTWO/article/details/83625586 广度优先遍历 public List<Integer> bfs(TreeNode root) { Queue<TreeNode> queue = new LinkedList<TreeNod 阅读全文
posted @ 2019-12-12 22:17 李荣先辈Java 阅读(595) 评论(0) 推荐(0) 编辑
摘要: 先更新 yum yum update 安装 相关包 yum install -y yum-utils device-mapper-persistent-data lvm2 设置 yum源(阿里) yum-config-manager --add-repo http://mirrors.aliyun. 阅读全文
posted @ 2019-12-11 23:03 李荣先辈Java 阅读(132) 评论(0) 推荐(0) 编辑
摘要: yum update 出错 : mirrors.163.com; Unknown error" Trying other mirror. yum-utils-1.1.31-52.el7.noarch FAILED http://ap.stykers.moe/centos/7.7.1908/os/x8 阅读全文
posted @ 2019-12-11 22:39 李荣先辈Java 阅读(1288) 评论(0) 推荐(0) 编辑
摘要: rowKey设计原则 1、长度原则 最大值为64KB, 长度在10 ~ 100byte ; 最好是 8 的倍数,太长会影响性能; 2、唯一原则 具有唯一性; 3、散列原则 1)、盐值散列;不能使用时间戳作为rowKey; 2)、 字符串反转:131313131 3)、计算分区号: hashmap 阅读全文
posted @ 2019-12-07 13:21 李荣先辈Java 阅读(244) 评论(0) 推荐(0) 编辑
摘要: Leetcode146-lru-cache 思路:https://blog.csdn.net/qq_41231926/article/details/86173740 int capacity; int size; Map<Integer, ListNode> map = new HashMap<I 阅读全文
posted @ 2019-12-06 21:12 李荣先辈Java 阅读(120) 评论(0) 推荐(0) 编辑
摘要: uml 阅读全文
posted @ 2019-12-02 00:33 李荣先辈Java 阅读(200) 评论(0) 推荐(0) 编辑
摘要: UML https://www.jianshu.com/p/2828874af134 多态 https://www.cnblogs.com/1693977889zz/p/8296595.html 里氏替换 https://blog.csdn.net/Jecklin_online/article/de 阅读全文
posted @ 2019-12-01 14:37 李荣先辈Java 阅读(142) 评论(0) 推荐(0) 编辑
摘要: findMedianSortedArrays 基本思路:通过指针按顺序移动来判断大小顺序,思路和有一道用链表求中间值一样; class Solution { public double findMedianSortedArrays(int[] nums1, int[] nums2) { double 阅读全文
posted @ 2019-11-28 12:57 李荣先辈Java 阅读(356) 评论(0) 推荐(0) 编辑
摘要: http://c.biancheng.net/view/1361.html 总结: 一、统一建模语言简介 1、类、接口、类图 2、类之间的关系 1)依赖; 2)关联; 3)聚合; 4)组合; 5)泛化; 6)实现; 二、 设计模式分类 1、接口型模式: 1)适配器模式; 2)外观模式; 3)合成模式 阅读全文
posted @ 2019-11-27 10:41 李荣先辈Java 阅读(189) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 48 下一页