上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 79 下一页
摘要: package _interview_question /** * we have 2 arrays in sorted order, no duplicates. we need find the max continuous length AP [arithmetic prog] in the 阅读全文
posted @ 2020-10-09 21:35 johnny_zhao 阅读(108) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_1027 import kotlin.collections.HashMap /** * 1027. Longest Arithmetic Subsequence * https://leetcode.com/problems/longest-arithmetic- 阅读全文
posted @ 2020-10-08 16:53 johnny_zhao 阅读(115) 评论(0) 推荐(0) 编辑
摘要: /** *The Sieve of Eratosthenes is an algorithm used to generate all prime numbers smaller than N. * The method is to take increasingly larger prime nu 阅读全文
posted @ 2020-10-08 11:01 johnny_zhao 阅读(99) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_1027 /** * 1027. Longest Arithmetic Subsequence * https://leetcode.com/problems/longest-arithmetic-subsequence/description/ * * Given 阅读全文
posted @ 2020-10-07 23:28 johnny_zhao 阅读(101) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_346 import java.util.* /** * 346. Moving Average from Data Stream * (Prime) * Given a stream of integers and a window size, calculate 阅读全文
posted @ 2020-10-07 21:38 johnny_zhao 阅读(110) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_413 /** * 413. Arithmetic Slices * https://leetcode.com/problems/arithmetic-slices/description/ * * A sequence of numbers is called a 阅读全文
posted @ 2020-10-06 22:03 johnny_zhao 阅读(114) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_414 /** * 414. Third Maximum Number * Given a non-empty array of integers, return the third maximum number in this array. * If it doe 阅读全文
posted @ 2020-10-06 19:19 johnny_zhao 阅读(123) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_1472 import java.util.* /** * 1472. Design Browser History * https://leetcode.com/problems/design-browser-history/description/ * * Yo 阅读全文
posted @ 2020-10-06 16:21 johnny_zhao 阅读(153) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_410 /** * 410. Split Array Largest Sum * https://leetcode.com/problems/split-array-largest-sum/description/ * * Given an array nums w 阅读全文
posted @ 2020-10-06 15:50 johnny_zhao 阅读(131) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_1603 /** * 1603. Design Parking System * https://leetcode.com/problems/design-parking-system/description/ * */ class ParkingSystem(bi 阅读全文
posted @ 2020-10-05 23:06 johnny_zhao 阅读(138) 评论(0) 推荐(0) 编辑
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 79 下一页