摘要: /** * https://leetcode-cn.com/problems/3sum/ */public class _15_三数之和 { public List<List<Integer>> threeSum(int[] nums) { if (nums == null) return null 阅读全文
posted @ 2021-07-06 10:21 syh-918 阅读(36) 评论(0) 推荐(0)
摘要: /** * https://leetcode-cn.com/problems/two-sum/ */public class _1_两数之和 { public int[] twoSum(int[] nums, int target) { if (nums == null) return null; 阅读全文
posted @ 2021-07-06 10:18 syh-918 阅读(33) 评论(0) 推荐(0)
摘要: /** * https://leetcode-cn.com/problems/permutations-ii/ */public class _47_全排列II { public List<List<Integer>> permuteUnique(int[] nums) { if (nums == 阅读全文
posted @ 2021-07-06 10:16 syh-918 阅读(98) 评论(0) 推荐(0)
摘要: /** * https://leetcode-cn.com/problems/permutations/ */public class _46_全排列3 { public List<List<Integer>> permute(int[] nums) { if (nums == null) retu 阅读全文
posted @ 2021-07-06 10:07 syh-918 阅读(29) 评论(0) 推荐(0)
摘要: /** * https://leetcode-cn.com/problems/generate-parentheses/ */public class _22_括号生成 { public List<String> generateParenthesis(int n) { List<String> l 阅读全文
posted @ 2021-07-06 10:02 syh-918 阅读(57) 评论(0) 推荐(0)
摘要: /** * https://leetcode-cn.com/problems/letter-combinations-of-a-phone-number/ */ 解法二: public class _17_电话号码的字母组合2 { private char[][] lettersArray = { 阅读全文
posted @ 2021-07-06 09:57 syh-918 阅读(121) 评论(0) 推荐(0)
摘要: 导语 本文介绍了如何优化iOS App的启动性能。 本文分为四个部分: 第一部分科普了一些和App启动性能相关的前置知识第二部分主要讲如何定制启动性能的优化目标第三部分通过在WiFi管家这个具体项目的优化过程,分享一些有用的经验第四部分是关键点的总结。【第一部分】一些小科普 因为篇幅的限制,没有办法 阅读全文
posted @ 2021-07-02 15:25 syh-918 阅读(114) 评论(0) 推荐(0)
摘要: 1 无用图片 fengniao https://github.com/Solve0/FengNiao.git 2.图片压缩 imageoptim https://imageoptim.com/mac 3.无用类 fui https://github.com/dblock/fui.git 4.无用方法 阅读全文
posted @ 2021-07-02 15:10 syh-918 阅读(86) 评论(0) 推荐(0)
摘要: load和initialize的共同特点 在不考虑开发者主动使用的情况下,系统最多会调用一次 如果父类和子类都被调用,父类的调用一定在子类之前 都是为了应用运行提前创建合适的运行环境 在使用时都不要过重地依赖于这两个方法,除非真正必要 load和initialize的区别 load方法 调用时机比较 阅读全文
posted @ 2021-07-02 10:48 syh-918 阅读(64) 评论(0) 推荐(0)
摘要: public class MergeSort<T extends Comparable<T>> extends Sort<T> { private T[] leftArray; @Override protected void sort() { leftArray = (T[]) new Compa 阅读全文
posted @ 2021-07-01 10:15 syh-918 阅读(25) 评论(0) 推荐(0)