摘要: 1038. Recover the Smallest Number (30)Given a collection of number segments, you are supposed to recover the smallest number from them. For example, g... 阅读全文
posted @ 2015-08-11 19:40 JackWang822 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 1048. Find Coins (25)Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal sh... 阅读全文
posted @ 2015-08-11 19:20 JackWang822 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1047. Student List for Course (25)Zhejiang University has 40000 students and provides 2500 courses. Now given the registered course list of each stude... 阅读全文
posted @ 2015-08-11 19:00 JackWang822 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 1046. Shortest Distance (20)The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest di... 阅读全文
posted @ 2015-08-11 18:59 JackWang822 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1044. Shopping in Mars (25)Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mar... 阅读全文
posted @ 2015-08-11 15:04 JackWang822 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 1043. Is It a Binary Search Tree (25)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left su... 阅读全文
posted @ 2015-08-11 14:16 JackWang822 阅读(231) 评论(0) 推荐(0) 编辑
摘要: 1042. Shuffling Machine (20)Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak... 阅读全文
posted @ 2015-08-11 14:13 JackWang822 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 1040. Longest Symmetric String (25)Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is P... 阅读全文
posted @ 2015-08-11 14:08 JackWang822 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1039. Course List for Student (25)Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the course... 阅读全文
posted @ 2015-08-11 14:07 JackWang822 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 1037. Magic Coupon (25)The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use th... 阅读全文
posted @ 2015-08-11 14:03 JackWang822 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1036. Boys vs Girls (25)This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of all ... 阅读全文
posted @ 2015-08-11 13:49 JackWang822 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1035. Password (20)To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some c... 阅读全文
posted @ 2015-08-11 13:46 JackWang822 阅读(192) 评论(0) 推荐(0) 编辑