摘要: 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)