- 博客(5)
- 资源 (3)
- 收藏
- 关注
原创 Dungeon Game - LeetCode
Dungeon Game - LeetCode 题目: 这又是一道动态规划的题目。 一开始的想法是用一个二维数组记录在(i,j)位置所能剩下的最大生命值,但是这是不对的。 后来想到了另一种方法,从右下角开始推,在(i,j)位置记录所需要的最小生命值。然后往起点推。 在走到最后一格后,只需要剩下一滴血就可以,虽然事实上可能剩下很多血,但是剩一滴血是满足条件的最小血量,这是个必
2017-11-27 20:19:19 327
原创 Search Insert Position - LeetCode
题目: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.时间比较紧,,选了一道特别简单的题目, 找到第一个大于等于target的数,
2017-11-26 23:40:20 255
原创 K Inverse Pairs Array - LeetCode
K Inverse Pairs Array - LeetCode 题目: Given two integers n and k, find how many different arrays consist of numbers from 1 to n such that there are exactly k inverse pairs. We define an invers
2017-11-19 13:24:13 376
原创 Best Time to Buy and Sell Stock IV - LeetCode
Best Time to Buy and Sell Stock IV - LeetCode 题目: Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may
2017-11-09 21:04:11 334
原创 Decode Ways II - LeetCode
Decode Ways II - LeetCode 题目: A message containing letters from A-Z is being encoded to numbers using the following mapping way: 'A' -> 1 'B' -> 2 ... 'Z' -> 26 Beyond that, now t
2017-11-02 14:27:03 289
matlab实现维纳滤波逆滤波
2018-01-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人