码迷,mamicode.com
首页 >  
搜索关键字:most water    ( 6947个结果
leetcode || 121、Best Time to Buy and Sell Stock
problem: Say you have an array for which the ith element is the price of a given stock on day i. If you were only permitted to complete at most one transaction (ie, buy one and sell one ...
分类:其他好文   时间:2015-04-27 11:25:03    阅读次数:120
leetcode || 123、Best Time to Buy and Sell Stock III
problem: 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 transactions...
分类:其他好文   时间:2015-04-27 11:18:37    阅读次数:134
CC2540/CC2541 : Change Scan Response Data( SRP) dynamically
How to change the SRP data is a very imperative for most bluetooth low energy use case. But in official Texas Instruments(TI) example code, there is no demonstration  for this purpose. In here, I note...
分类:其他好文   时间:2015-04-27 00:29:29    阅读次数:489
【Plus One】cpp
题目:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is...
分类:其他好文   时间:2015-04-26 17:59:43    阅读次数:116
POJ (线段树) Who Gets the Most Candies?
这道题综合性挺强的,又牵扯到数论,又有线段树。线段树维护的信息就是区间中有多少个人没跳出去,然后计算出下一个人是剩下的人中第几个。我在这调程序调了好久,就是那个模来模去的弄得我头晕。不过题确实是好题,给赞。 1 #include 2 #include 3 #include 4 #include...
分类:其他好文   时间:2015-04-26 15:02:37    阅读次数:120
【Trapping Rain Water】cpp
题目:Givennnon-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining...
分类:移动开发   时间:2015-04-26 10:49:01    阅读次数:135
leetcode 4. 移除有序数组中的重复元素 Remove Duplicates from Sorted Array
问题:Remove Duplicates from Sorted Array II 难度:mediumFollow up for “Remove Duplicates”: What if duplicates are allowed at most twice?For example, Given sorted array A = [1,1,1,2,2,3],Your function s...
分类:编程语言   时间:2015-04-25 12:19:41    阅读次数:186
HDU3466——背包DP——Proud Merchants
DescriptionRecently, iSea went to an ancient country. For such a long time, it was the most wealthy and powerful kingdom in the world. As a result, th...
分类:其他好文   时间:2015-04-25 11:54:57    阅读次数:116
Encapsulate Behavior, Not Just State
Einar LandreiN SYSTEMS THEORY, containment is one of the most useful constructs when dealing with large and complex system structures. In the software industry, the value of containment or encapsulatio...
分类:其他好文   时间:2015-04-25 10:50:27    阅读次数:194
Fulfill Your Ambitions with Open Source
Fulfill Your Ambitions with Open SourceRichard Monson-HaefelCHANCES ARE PRETTY GOOD that you are not developing software at work that fulfills your most ambitious software development daydreams. Perhap...
分类:其他好文   时间:2015-04-25 10:49:31    阅读次数:124
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!