摘要: The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. 阅读全文
posted @ 2018-02-01 20:50 A-Little-Nut 阅读(121) 评论(0) 推荐(0) 编辑
摘要: The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the s 阅读全文
posted @ 2018-02-01 20:20 A-Little-Nut 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social n 阅读全文
posted @ 2018-02-01 19:51 A-Little-Nut 阅读(128) 评论(0) 推荐(0) 编辑
摘要: The ranklist of PAT is generated from the status list, which shows the scores of the submittions. This time you are supposed to generate the ranklist 阅读全文
posted @ 2018-02-01 18:21 A-Little-Nut 阅读(166) 评论(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-02-01 15:55 A-Little-Nut 阅读(133) 评论(0) 推荐(0) 编辑
摘要: Scientific notation is the way that scientists easily handle very large numbers or very small numbers. The notation matches the regular expression [+ 阅读全文
posted @ 2018-02-01 15:49 A-Little-Nut 阅读(151) 评论(0) 推荐(0) 编辑
摘要: A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as po 阅读全文
posted @ 2018-02-01 15:26 A-Little-Nut 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 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 @ 2018-02-01 10:43 A-Little-Nut 阅读(123) 评论(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 @ 2018-02-01 09:25 A-Little-Nut 阅读(152) 评论(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 @ 2018-02-01 09:23 A-Little-Nut 阅读(226) 评论(0) 推荐(0) 编辑