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 at the head of the list.
题意:大数加法。
class Soluti...
分类:
其他好文 时间:
2015-03-30 16:33:20
阅读次数:
91
一个int占多少个字节?这个问题我们往往得到的答案是4.可是int究竟占多少个字节,却跟你的机器环境有关.As you can see, the typical data type sizes match the ILP32LL model, which is what most compilers...
分类:
其他好文 时间:
2015-03-30 16:04:28
阅读次数:
192
我非常喜欢两句话: the best people require least and give most.
我步入丛林,因为我希望生活得有意义,我希望活得深刻,并汲取生命中所有的精华。然后从中学习,以免让我在生命终结时,却发现自己从来没有活过.
他与人交往的谦和深深吸引了我, 把对方当作6年纪的小学生去交流, 这样你的思维更加清晰, 态度也会更加友善.
先记一些, 下次接着...
分类:
其他好文 时间:
2015-03-30 13:20:47
阅读次数:
95
Simple StringProblem's Link: http://acm.csu.edu.cn/OnlineJudge/problem.php?id=1550Mean:略。analyse:水题。Time complexity: O(n)Source code:// Memory Time...
分类:
其他好文 时间:
2015-03-29 23:18:15
阅读次数:
222
WeLongDaWoodmanufacturehardwoodcore3timehotpressfilmfacedplywood.Thecoreofthiskindfilmfacedplywoodismadefrom13layersfor18mmthicknessmarineplywood.filmfacedplywood,Brownphenolicfilm,WBPglue,hardwoodcore1220x2440x18mm--------US瑞342/CBMFOBQingdaoport,ChinaLoa..
分类:
其他好文 时间:
2015-03-29 18:13:08
阅读次数:
160
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 share of the stock), des...
分类:
其他好文 时间:
2015-03-29 13:41:22
阅读次数:
186
OpenCV is the most popular and advanced code library for Computer Vision related applications today, spanning from many very basic tasks (capture and ...
分类:
系统相关 时间:
2015-03-29 13:37:17
阅读次数:
186
Problem Description
XX星有许多城市,城市之间通过一种奇怪的高速公路SARS(Super Air Roam Structure---超级空中漫游结构)进行交流,每条SARS都对行驶在上面的Flycar限制了固定的Speed,同时XX星人对 Flycar的“舒适度”有特殊要求,即乘坐过程中最高速度与最低速度的差越小乘坐越舒服 ,(理解为SARS的限速要求,flycar必须瞬间提速/降速,痛苦呀 ),
但XX星人对时间却没那么多要求。要你找出一条城市间的最舒适的路径。(SARS是双向的)。
...
分类:
其他好文 时间:
2015-03-29 12:21:31
阅读次数:
150
题目:
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 share of ...
分类:
其他好文 时间:
2015-03-29 12:21:10
阅读次数:
210
题目:
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.
Note...
分类:
其他好文 时间:
2015-03-29 12:14:11
阅读次数:
150