摘要:
package LeetCode_509 /** * 509. Fibonacci Number * https://leetcode.com/problems/fibonacci-number/ * * The Fibonacci numbers, commonly denoted F(n) fo 阅读全文
摘要:
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 阅读全文
摘要:
package LeetCode_498 import java.util.* /** * 498. Diagonal Traverse * https://leetcode.com/problems/diagonal-traverse/ * Given a matrix of M x N elem 阅读全文
摘要:
package LeetCode_493 import java.util.* /** * 493. Reverse Pairs * https://leetcode.com/problems/reverse-pairs/ * * Given an array nums, we call (i, j 阅读全文
摘要:
package LeetCode_1021 import java.util.* /** * 1021. Remove Outermost Parentheses * https://leetcode.com/problems/remove-outermost-parentheses/ * A va 阅读全文
摘要:
package LeetCode_490 import java.util.* import kotlin.collections.HashSet /** * 490. The Maze * (Prime) * https://www.lintcode.com/problem/the-maze/de 阅读全文
摘要:
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 阅读全文
摘要:
package _interview_question /** * we have 2 arrays in sorted order, no duplicates. we need find the max continuous length AP [arithmetic prog] in the 阅读全文
摘要:
package LeetCode_1027 import kotlin.collections.HashMap /** * 1027. Longest Arithmetic Subsequence * https://leetcode.com/problems/longest-arithmetic- 阅读全文
摘要:
/** *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 阅读全文