数据结构与算法
文章平均质量分 91
honze
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
整数二分查找模板
template int binary_search(T a[], int low, int high, JudgeFuncType judge){ int ans = -1, mid; while (low <= high) { mid = (low >> 1) + (high >> 1); if (judge(mid)) // suc原创 2014-08-20 21:58:28 · 236 阅读 · 0 评论 -
Addition
ProblemSix years ago, a robot, Bob, with infant's intelligence has been invented by an evil scientist, Alice.Now the robot is six years old and studies in primary school. Addition is the first o原创 2014-08-20 11:41:19 · 634 阅读 · 0 评论 -
Cut Tiles
ProblemEnzo is doing renovation for his new house. The most difficult part is to buy exactly the right number of tiles. He wants N tiles of different sizes. Of course they have to be cut from th原创 2014-08-20 18:33:19 · 262 阅读 · 0 评论 -
POJ3267 The Cow Lexicon
The Cow LexiconTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 8111 Accepted: 3810DescriptionFew know that the cows have their own dictionary with W (原创 2014-08-24 10:48:07 · 207 阅读 · 0 评论 -
POJ1837 Balance
BalanceTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 10596 Accepted: 6576DescriptionGigel has a strange "balance" and he wants to poise it. Actually原创 2014-08-23 13:22:17 · 168 阅读 · 0 评论 -
快速排序的写法
面试中一个频率极高的问题就是ya原创 2014-08-27 17:35:32 · 398 阅读 · 0 评论 -
Seven-segment Display
ProblemTom is a boy whose dream is to become a scientist, he invented a lot in his spare time. He came up with a great idea several days ago: to make a stopwatch by himself! So he bought a seven-s原创 2014-08-18 19:53:57 · 884 阅读 · 0 评论 -
UVa 111 History Grading
BackgroundMany problems in Computer Science involve maximizing some measure according to constraints.Consider a history exam in which students are asked to put several historical events into chr原创 2014-08-31 20:32:19 · 148 阅读 · 0 评论
分享