- 博客(3)
- 收藏
- 关注
原创 leetcode练习 714. Best Time to Buy and Sell Stock with Transaction Fee
动态规划感觉很重要,很锻炼思维。Your are given an array of integers prices, for which the i-th element is the price of a given stock on day i; and a non-negative integer fee representing a transaction fee.You may comp
2017-11-20 02:08:35 309
原创 leetcode练习 Redundant Connection
这次是检查冗余的,题目主要练习无向图中是否有环的判断。 题目如下: In this problem, a tree is an undirected graph that is connected and has no cycles.The given input is a graph that started as a tree with N nodes (with distinct valu
2017-11-13 01:26:37 231
原创 leetcode练习 Course Schedule II
之前做了Course Schedule,也是拓扑排序。 (其实做这个是水了一期 直接上题目 There are a total of n courses you have to take, labeled from 0 to n - 1.Some courses may have prerequisites, for example to take course 0 you have to f
2017-11-06 01:56:24 150
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人