上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 79 下一页
摘要: package LeetCode_338 /** * 338. Counting Bits * https://leetcode.com/problems/counting-bits/description/ * https://www.cnblogs.com/grandyang/p/5294255 阅读全文
posted @ 2020-03-31 14:24 johnny_zhao 阅读(113) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_1064 /** * 1064. Fixed Point * Lock by LeetCode * Given an array A of distinct integers sorted in ascending order, return the smalles 阅读全文
posted @ 2020-03-31 13:28 johnny_zhao 阅读(143) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_622 /** * 622. Design Circular Queue * https://leetcode.com/problems/design-circular-queue/description/ * * Your implementation shoul 阅读全文
posted @ 2020-03-30 12:55 johnny_zhao 阅读(84) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_71 import java.util.* /** * 71. Simplify Path * https://leetcode.com/problems/simplify-path/description/ * * Example 5: Input: "/a/.. 阅读全文
posted @ 2020-03-29 13:46 johnny_zhao 阅读(102) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_347 import java.util.* import kotlin.collections.ArrayList import kotlin.collections.HashMap /** * 347. Top K Frequent Elements * htt 阅读全文
posted @ 2020-03-28 16:45 johnny_zhao 阅读(84) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_7 /** * 7. Reverse Integer * https://leetcode.com/problems/reverse-integer/description/ * */ class Solution { fun reverse(x_: Int): I 阅读全文
posted @ 2020-03-27 12:09 johnny_zhao 阅读(109) 评论(0) 推荐(0) 编辑
摘要: /** 26. Remove Duplicates from Sorted Array https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/ */ class Solution { fun rem 阅读全文
posted @ 2020-03-26 16:08 johnny_zhao 阅读(67) 评论(0) 推荐(0) 编辑
摘要: package _Sort.Algorithm /** * https://www.geeksforgeeks.org/merge-sort/ * https://www.cnblogs.com/chengxiao/p/6194356.html * best/worst/average Time c 阅读全文
posted @ 2020-03-26 14:25 johnny_zhao 阅读(165) 评论(0) 推荐(0) 编辑
摘要: /** * 55. Jump Game * https://leetcode.com/problems/jump-game/description/ * */ class Solution { fun canJump(nums: IntArray): Boolean { //method 1 /*v 阅读全文
posted @ 2020-03-25 12:39 johnny_zhao 阅读(101) 评论(0) 推荐(0) 编辑
摘要: /** * 860. Lemonade Change * https://leetcode.com/problems/lemonade-change/description/ * */ class Solution { //使用贪心,策略是每次找钱选择大面额,尽量保留5元的 fun lemonade 阅读全文
posted @ 2020-03-25 00:30 johnny_zhao 阅读(151) 评论(0) 推荐(0) 编辑
上一页 1 ··· 61 62 63 64 65 66 67 68 69 ··· 79 下一页