随笔分类 - PAT
摘要:People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzi...
阅读全文
摘要:Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional...
阅读全文
摘要:For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decre...
阅读全文
摘要:Path of Equal Weight (DFS)Given a non-empty tree with root R, and with weight Wi assigned to each tree node Ti. The weight of a path from R to L is de...
阅读全文
摘要:Linked List Sorting (链表)A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure ...
阅读全文
摘要:Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from S1. Your task is simply to c...
阅读全文

浙公网安备 33010602011771号