本文出自:http://blog.csdn.net/svitter
题意分析:
Given m sequences, each contains n non-negative integer. Now we may select one number from each sequence to form a sequence with m integers. It's clear
...
分类:
其他好文 时间:
2014-08-03 12:54:15
阅读次数:
912
题目:Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the....
分类:
编程语言 时间:
2014-08-03 04:40:04
阅读次数:
351
This article refers to males and females alike. You may think that love is something that is simply thrown upon you, but this is an unhealthy assump.....
分类:
其他好文 时间:
2014-08-02 15:22:23
阅读次数:
293
列表和数据框
1.列表
list函数创建列表
> (a_list 1,-3),nrow=2),asin))
[[1]]
[1] 1 1 2 5 14 42
[[2]]
[1] "Jan" "Feb" "Mar" "Apr" "May" "Jun" "Jul" "Aug" "Sep" "Oct" "Nov" "Dec"
[...
分类:
其他好文 时间:
2014-08-02 10:08:33
阅读次数:
303
题目:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1...
分类:
编程语言 时间:
2014-08-02 09:50:13
阅读次数:
232
倍增法在线LCA.....
ZOJ Problem Set - 3195
Design the city
Time Limit: 1 Second Memory Limit: 32768 KB
Cerror is the mayor of city HangZhou. As you may know, the traffic system of thi...
分类:
其他好文 时间:
2014-08-01 23:07:52
阅读次数:
321
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
/**
* Definition for binary tree
* struct TreeNode {...
分类:
其他好文 时间:
2014-08-01 19:53:32
阅读次数:
222
题目:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will ....
分类:
编程语言 时间:
2014-08-01 10:38:21
阅读次数:
224
Problem Description
A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have different heights. For example, the fi...
分类:
其他好文 时间:
2014-08-01 09:16:21
阅读次数:
280
C -Design the cityTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionCerror is the mayor of city HangZhou. As you may know, th...
分类:
其他好文 时间:
2014-08-01 09:12:51
阅读次数:
336