上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 79 下一页
摘要: package LeetCode_509 /** * 509. Fibonacci Number * https://leetcode.com/problems/fibonacci-number/ * * The Fibonacci numbers, commonly denoted F(n) fo 阅读全文
posted @ 2020-10-14 00:37 johnny_zhao 阅读(94) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_505 import java.util.* /** * 505. The Maze II * (Prime) * There is a ball in a maze with empty spaces and walls. * The ball can go th 阅读全文
posted @ 2020-10-13 23:54 johnny_zhao 阅读(82) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_498 import java.util.* /** * 498. Diagonal Traverse * https://leetcode.com/problems/diagonal-traverse/ * Given a matrix of M x N elem 阅读全文
posted @ 2020-10-13 14:14 johnny_zhao 阅读(62) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_493 import java.util.* /** * 493. Reverse Pairs * https://leetcode.com/problems/reverse-pairs/ * * Given an array nums, we call (i, j 阅读全文
posted @ 2020-10-12 20:38 johnny_zhao 阅读(95) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_1021 import java.util.* /** * 1021. Remove Outermost Parentheses * https://leetcode.com/problems/remove-outermost-parentheses/ * A va 阅读全文
posted @ 2020-10-12 15:52 johnny_zhao 阅读(117) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_490 import java.util.* import kotlin.collections.HashSet /** * 490. The Maze * (Prime) * https://www.lintcode.com/problem/the-maze/de 阅读全文
posted @ 2020-10-11 23:48 johnny_zhao 阅读(128) 评论(0) 推荐(0) 编辑
摘要: package LeetCode_489 /** * 489. Robot Room Cleaner * (Prime) * Given a robot cleaner in a room modeled as a grid. Each cell in the grid can be empty o 阅读全文
posted @ 2020-10-10 23:45 johnny_zhao 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(105) 评论(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 阅读(112) 评论(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) 编辑
上一页 1 ··· 30 31 32 33 34 35 36 37 38 ··· 79 下一页