摘要:
Source: PAT A1089 Insert or Merge (25 分) Description: According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, an 阅读全文
摘要:
Source: PAT A1093 Count PAT's (25 分) Description: The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th, and 阅读全文
摘要:
Source: PAT A1097 Deduplication on a Linked List (25 分) Description: Given a singly linked list L with integer keys, you are supposed to remove the no 阅读全文
摘要:
Source: PAT A1100 Mars Numbers (20 分) Description: People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The number 阅读全文
摘要:
Source: PAT A1104 Sum of Number Segments (20 分) Description: Given a sequence of positive numbers, a segment is defined to be a consecutive subsequenc 阅读全文
摘要:
Source: PAT A1131 Subway Map (30 分) Description: In the big cities, the subway systems always look so complex to the visitors. To give you some sense, 阅读全文