摘要: 1059. Prime Factors (25)Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1* p2^k2... 阅读全文
posted @ 2015-08-12 22:04 JackWang822 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1052. Linked List Sorting (25)A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each stru... 阅读全文
posted @ 2015-08-12 15:04 JackWang822 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1051. Pop Sequence (25)Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are suppos... 阅读全文
posted @ 2015-08-12 15:03 JackWang822 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1032. Sharing (25)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 word... 阅读全文
posted @ 2015-08-12 11:32 JackWang822 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1034. Head of a Gang (30)One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, ... 阅读全文
posted @ 2015-08-12 10:47 JackWang822 阅读(219) 评论(0) 推荐(0) 编辑