LeetCode 1292 Maximum Side Length of a Square

2019-12-20
阅读 3 分钟
1.9k
Given a m x n matrix mat and an integer threshold. Return the maximum side-length of a square with a sum less than or equal to threshold or return 0 if there is no such square.

Leetcode 1130 Minimum Cost Tree From Leaf Values

2019-12-19
阅读 3 分钟
2.8k
Given an array arr of positive integers, consider all binary trees such that:

1.斐波那契数列和DP的关系

2019-12-05
阅读 2 分钟
1.9k
用斐波那契数列来过度,结合油管上一个讲得比较好的tutorial,感受一下递归-->记忆化搜索-->dp的过程。以下是斐波那契数列的各个solution的实现。