题目:
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai) and (i,
...
分类:
其他好文 时间:
2015-04-06 17:17:36
阅读次数:
142
题目:An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at ...
分类:
其他好文 时间:
2015-04-06 11:15:43
阅读次数:
148
1. 利用magrittr包进行管道操作
很多情况下,管道操作符可以很大程度的简化代码,并且使其更加直观、易读、易懂,下面就简单说明了useR2014上颇受R用户喜爱的magrittr包。
the pipe operatoris one (if not THE) most important innovation introduced, this year, to the Recos...
分类:
编程语言 时间:
2015-04-06 08:59:44
阅读次数:
287
题目:
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),...
分类:
其他好文 时间:
2015-04-05 23:37:03
阅读次数:
153
一: Plus One
题目:
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.
...
分类:
其他好文 时间:
2015-04-05 21:59:23
阅读次数:
159
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 Solution {
p...
分类:
其他好文 时间:
2015-04-05 17:33:17
阅读次数:
89
A sweet little monster Om Nom loves candies very much. One day he found himself in a rather tricky situation that required him to think a bit in order to enjoy candies the most. Would you succeed with...
分类:
其他好文 时间:
2015-04-05 14:40:31
阅读次数:
171
E - Just a Hook
Time Limit:2000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u
Submit Status Practice
Description
In the game of DotA, Pudge’s meat hook is actually the most horrible thing...
分类:
其他好文 时间:
2015-04-05 09:12:34
阅读次数:
293
Benny has a spacious farm land to irrigate. The farm land is a rectangle, and is divided into a lot of samll squares. Water pipes are placed in these ...
分类:
其他好文 时间:
2015-04-05 06:22:39
阅读次数:
143
WeLongDaWoodmanufacturehardwoodcore3timehotpressfilmfacedplywood.Thecoreofthiskindfilmfacedplywoodismadefrom13layersfor18mmthicknessmarineplywood.filmfacedplywood,Brownphenolicfilm,WBPglue,hardwoodcore1220x2440x18mm--------US超342/CBMFOBQingdaoport,ChinaLoa..
分类:
其他好文 时间:
2015-04-04 16:56:11
阅读次数:
130