摘要: // 创建型 1. Factory method / Static Factory: https://www.cnblogs.com/zhangwanying/p/15195606.html 2. Abstract Factory 3. Builder 4. ProtoType 5. Singlet 阅读全文
posted @ 2021-08-27 22:51 zhangwanying 阅读(30) 评论(0) 推荐(0) 编辑
摘要: Hash Table: Two Pointers: https://www.cnblogs.com/zhangwanying/p/14913352.html Binary Search: Array: String: DP: DFS: BFS: Tree: Binary Search Tree: B 阅读全文
posted @ 2021-06-21 14:32 zhangwanying 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 【Leetcode周赛】比赛目录索引 (一般10个contest写一个文章) 阅读全文
posted @ 2019-02-22 11:01 zhangwanying 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 内功基础算法索引 阅读全文
posted @ 2019-02-18 10:56 zhangwanying 阅读(297) 评论(0) 推荐(0) 编辑
摘要: Kickstart 2018 All Rounds 阅读全文
posted @ 2019-01-29 15:34 zhangwanying 阅读(764) 评论(2) 推荐(0) 编辑
摘要: leetcode 我的题解按照 tag 分类文章索引 阅读全文
posted @ 2019-01-17 21:20 zhangwanying 阅读(1058) 评论(0) 推荐(0) 编辑
摘要: Mysql 分布式集群学习笔记 阅读全文
posted @ 2018-11-29 20:51 zhangwanying 阅读(173) 评论(0) 推荐(0) 编辑
摘要: 链接:https://leetcode.com/contest/weekly-contest-262 T1: 2032. Two Out of Three https://leetcode.com/problems/two-out-of-three/ 思路:无 T2: 2033. Minimum O 阅读全文
posted @ 2021-10-12 09:17 zhangwanying 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 什么是静态工厂 我们一般来说使用 new 来创建一个对象,在实际的开发中,还可以通过一个静态方法来提供一个类的instance。 1 // constructor 2 Fragment fragment = new MyFragment(); 3 // or 4 Date date = new Da 阅读全文
posted @ 2021-08-27 23:25 zhangwanying 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 背景 本笔记来自于狂神说JUC笔记。 B站link: https://www.bilibili.com/video/BV1B7411L7tE 什么是JUC java.util.concurrent java.util.concurrent.atomic java.util.concurrent.lo 阅读全文
posted @ 2021-06-28 14:56 zhangwanying 阅读(141) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-06-28 10:53 zhangwanying 阅读(0) 评论(0) 推荐(0) 编辑
摘要: [3] Longest Substring Without Repeating Characters (2021-Jun-21) Given a string s, find the length of the longest substring without repeating characte 阅读全文
posted @ 2021-06-21 14:53 zhangwanying 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 1NF:https://www.youtube.com/watch?v=7Kc-W295QtA 2NF:https://www.youtube.com/watch?v=3qYBXOAws8U 3NF:https://www.youtube.com/watch?v=DjxqG-3bJp8 阅读全文
posted @ 2021-06-17 14:24 zhangwanying 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 1. 如果返回值是 int[], 那么可以这么初始化: return new int[]{ele1, ele2,...}; 2. 如果需要返回Exception, we can use IllegalArgumentException. 阅读全文
posted @ 2021-06-16 12:55 zhangwanying 阅读(170) 评论(0) 推荐(0) 编辑
摘要: https://spring.io/guides#getting-started-guides 1. Building a RESTful Web Service https://spring.io/guides/gs/rest-service/ keywords: pom.xml, @RestCo 阅读全文
posted @ 2020-03-02 13:13 zhangwanying 阅读(80) 评论(0) 推荐(0) 编辑