上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 25 下一页
摘要: About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and virtue. According to his theor 阅读全文
posted @ 2018-06-12 17:50 赖兴宇 阅读(186) 评论(0) 推荐(0)
摘要: 1137 Final Grading (25)(25 分) For a student taking the online course "Data Structures" on China University MOOC (http://www.icourse163.org/), to be qu 阅读全文
posted @ 2018-06-11 19:28 赖兴宇 阅读(178) 评论(0) 推荐(0)
摘要: Given a set of N (> 1) positive integers, you are supposed to partition them into two disjoint sets A~1~ and A~2~ of n~1~ and n~2~ numbers, respective 阅读全文
posted @ 2018-06-11 18:12 赖兴宇 阅读(159) 评论(0) 推荐(0)
摘要: Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute values of the keys. That is, for each va 阅读全文
posted @ 2018-06-11 15:03 赖兴宇 阅读(129) 评论(0) 推荐(0)
摘要: Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For example, given L being 1→2→3→4→5→6, 阅读全文
posted @ 2018-06-11 12:10 赖兴宇 阅读(161) 评论(0) 推荐(0)
摘要: To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same s 阅读全文
posted @ 2018-06-11 11:04 赖兴宇 阅读(212) 评论(0) 推荐(0)
摘要: If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*10^5^ wit 阅读全文
posted @ 2018-06-11 10:46 赖兴宇 阅读(297) 评论(0) 推荐(0)
摘要: Look-and-say sequence is a sequence of integers as the following: D, D1, D111, D113, D11231, D112213111, ... where D is in [0, 9] except 1. The (n+1)s 阅读全文
posted @ 2018-06-10 23:38 赖兴宇 阅读(150) 评论(0) 推荐(0)
摘要: After each PAT, the PAT Center will announce the ranking of institutions based on their students' performances. Now you are asked to generate the rank 阅读全文
posted @ 2018-06-10 21:47 赖兴宇 阅读(249) 评论(0) 推荐(0)
摘要: Given a list of N student records with name, ID and grade. You are supposed to sort the records with respect to the grade in non-increasing order, and 阅读全文
posted @ 2018-06-10 18:05 赖兴宇 阅读(126) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 25 下一页