
输入流的运用
文章平均质量分 68
Rechard_chen
不积跬步无以至千里。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
单词缩写
Problem Description 我们经常用一串短的字母代替一些长的单词。如ACM是Association for Computing Machinery的缩写。现在你用取首字母的办法得到一串单词的缩写。取首字母的办法是指把每个单词的首字母取出来用大写字母表示,然后把这些大写字母拼起来。但是也有些情况是例外的:一些情况在产生缩写是会被忽略,这些特殊情况见下面的规则: 1.常用的单词:an原创 2014-08-27 14:43:02 · 907 阅读 · 0 评论 -
最长公共子序列
Problem Description 一个给定序列的子序列是在该序列中删去若干元素后得到的序列。确切地说,若给定序列X=,则另一个序列Z=是X的子序列是指存在一个严格递增的下标序列,使得对于所有j=1,2,...,k有:Xij=Zj 例如,序列Z=是序列X=的子序列,相应的递增下标序列为。给定两个序列X和Y,当另一个序列Z既是X的子序列又是Y的子序列时,称Z是序列X和Y的公共子序列。例如原创 2014-08-15 15:02:10 · 642 阅读 · 0 评论 -
Tree
You are to determine the value of the leaf node in a given binary tree that is the terminal node of a path of least value from the root of the binary tree to any leaf. The value of a path is the sum o原创 2014-11-11 19:38:13 · 652 阅读 · 0 评论 -
Stacks of Flapjacks
Stacks of Flapjacks Background Stacks and Queues are often considered the bread and butter of data structures and find use in architecture, parsing, operating systems, and discrete eve原创 2014-11-05 20:06:28 · 830 阅读 · 0 评论