码迷,mamicode.com
首页 >  
搜索关键字:the best rank    ( 3634个结果
[leetcode]Best Time to Buy and Sell Stock II @ Python
原题地址:https://oj.leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/题意:Say you have an array for which theithelement is the price of a given stoc...
分类:编程语言   时间:2014-06-06 20:04:46    阅读次数:400
Swift 枚举和结构
枚举 使用enum创建枚举——注意 Swift 的枚举可以关联方法: 1 enum Rank: Int { 2 case Ace = 1 case Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten 3 case Jack, Q...
分类:其他好文   时间:2014-06-06 08:30:54    阅读次数:285
Leetcode--Best Time to Buy and Sell Stock III
Problem Description: 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 complete at most two transa...
分类:其他好文   时间:2014-06-05 09:33:52    阅读次数:342
hdu-4833-Best-Financing(DP)
Best Financing Time Limit: 20000/10000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 148    Accepted Submission(s): 35 Problem Description 小A想通过合理投资银行理...
分类:其他好文   时间:2014-06-05 05:12:11    阅读次数:239
LeetCode--Best Time to Buy and Sell Stock (贪心策略 or 动态规划)
LeetCode Problem -- Best Time to Buy and Sell Stock Greedy Algorithms 贪心算法...
分类:其他好文   时间:2014-06-05 04:36:58    阅读次数:239
【百度之星2014~初赛解题报告】
最近要毕业了,有半年没做比赛了. 这次参加百度之星的初赛娱乐一下. 现在写一下解题报告. 还是先看看四道题的类型吧 1.Scenic Popularity 暴力 复杂度O( 100 * 100 * 10000 ) 或者O( T * K * R) 线段树 2.Chess DP 复杂度 O(n^2) 3.Best Financing DP 复杂度O(n) 4.JZP Set 数论或DP 复杂度 O(n * log(n))...
分类:其他好文   时间:2014-06-04 23:35:07    阅读次数:219
poj 1699 Best Sequence
http://poj.org/problem?id=1699题意:给你n个长度为L的序列,求包含这几个序列的最短长度。先预处理每两个序列之间的关系,然后dfs枚举就行。 1 #include 2 #include 3 #include 4 #define maxn 500 5 using na...
分类:其他好文   时间:2014-06-04 16:34:14    阅读次数:255
About Swift
Swift is a new programming language for iOS and OS X apps that builds on the best of C and Objective-C, without the constraints of C compatibility. Swift adopts safe programming patterns and adds mode...
分类:其他好文   时间:2014-06-04 13:19:23    阅读次数:282
【LeetCode】Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock IISay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the ...
分类:其他好文   时间:2014-06-02 15:01:53    阅读次数:305
Google Code Jam 2014 总结
第一次参加ACM竞赛,对自己取得的成绩还满意。Round1A: Rank: 2446 Score: 9 (没有进前1000名,只能拼下次了) Round1B: Rank: 944 Score: 42(太幸运了,从300多降到900多,还好没有出1000) Round1C: 实习老大强势归来...
分类:其他好文   时间:2014-06-01 11:40:06    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!