随笔分类 -  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... 阅读全文
posted @ 2015-01-20 08:10 小爷 阅读(386) 评论(0) 推荐(0)
摘要:Mooncake is a Chinese bakery product traditionally eaten during the Mid-Autumn Festival. Many types of fillings and crusts can be found in traditional... 阅读全文
posted @ 2015-01-20 08:08 小爷 阅读(293) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2015-01-20 08:05 小爷 阅读(276) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2015-01-19 08:01 小爷 阅读(423) 评论(0) 推荐(0)
摘要:Linked List Sorting (链表)A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure ... 阅读全文
posted @ 2015-01-19 07:57 小爷 阅读(230) 评论(0) 推荐(0)
摘要: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... 阅读全文
posted @ 2015-01-19 07:49 小爷 阅读(172) 评论(0) 推荐(0)