LeetCode String

LeetCode + 《剑指Offer II》刷题笔记。 字符串 014. 字符串中的变位词 剑指 Offer II 014. 字符串中的变位词 双指针 + 哈希表 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

LeetCode Array

LeetCode + 《剑指Offer II》刷题笔记。使用 C++ 和 Java 两种语言。 数组 006. 排序数组中两个数字之和 剑指 Offer II 006. 排序数组中两个数字之和 二分查找 1 2 3 4 5 6 7 8

Dependency Injection

Effective Java 的笔记,代码、英语原文为主,批注、翻译为辅。 Item 5: Prefer dependency injection to hardwiring resources 优先考虑依赖注入来引入资源 Condition Many classes depend on one or more underlying resources. For example, a spell checker depends on a dictionary. Inappropriate use of static utility -