上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 79 下一页
摘要: package LeetCode_454 /** * 454. 4Sum II * https://leetcode.com/problems/4sum-ii/ * Given four lists A, B, C, D of integer values, * compute how many t 阅读全文
posted @ 2020-12-19 15:36 johnny_zhao 阅读(90) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_18 /** * 18. 4Sum * https://leetcode.com/problems/4sum/ * Given an array nums of n integers and an integer target, * are there elemen 阅读全文
posted @ 2020-12-19 14:51 johnny_zhao 阅读(88) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_289 /** * 289. Game of Life * https://leetcode.com/problems/game-of-life/ * According to the Wikipedia's article: * "The Game of Life 阅读全文
posted @ 2020-12-18 15:17 johnny_zhao 阅读(89) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_169 /** * 169. Majority Element * https://leetcode.com/problems/majority-element/ * Given an array of size n, find the majority eleme 阅读全文
posted @ 2020-12-17 22:05 johnny_zhao 阅读(55) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_169 /** * 169. Majority Element * https://leetcode.com/problems/majority-element/ * Given an array of size n, find the majority eleme 阅读全文
posted @ 2020-12-17 21:47 johnny_zhao 阅读(62) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_219 /** * 219. Contains Duplicate II * https://leetcode.com/problems/contains-duplicate-ii/ * Given an array of integers and an integ 阅读全文
posted @ 2020-12-17 12:56 johnny_zhao 阅读(71) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_217 /** * 217. Contains Duplicate * https://leetcode.com/problems/contains-duplicate/ * Given an array of integers, find if the array 阅读全文
posted @ 2020-12-17 11:53 johnny_zhao 阅读(56) 评论(0) 推荐(0) 编辑
摘要: ppi pixel per inch,每英寸像素数,针对显示器的设计时,dpi=ppi。ppi计算方法是长宽各自平方之和开方,除以对角线长度(单位英寸)。 dpi dot per inch,每英寸多少点,是由ppi确定的。实际上dpi有: low:120 medium:160 hdpi:240 xh 阅读全文
posted @ 2020-12-16 12:24 johnny_zhao 阅读(728) 评论(0) 推荐(0) 编辑
摘要: 对象锁 在代码中的方法上加了synchronized的锁,或者synchronized(this)的代码段。 Java的所有对象都含有一个互斥锁,这个锁由jvm自动获取和释放。线程进入synchronized方法的时候获取该对象的锁,但如果已经有线程获取了这个对象的锁,那么当前线程会等待;synch 阅读全文
posted @ 2020-12-15 17:25 johnny_zhao 阅读(987) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_120 /** * 120. Triangle * https://leetcode.com/problems/triangle/ * Given a triangle, find the minimum path sum from top to bottom. * 阅读全文
posted @ 2020-12-15 15:46 johnny_zhao 阅读(109) 评论(0) 推荐(0) 编辑
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 79 下一页