摘要: 1059. Prime Factors 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 @ 2017-09-08 22:51 zhayujie 阅读(895) 评论(0) 推荐(0) 编辑
摘要: 1058. A+B in HogwartsIf you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid expl... 阅读全文
posted @ 2017-09-08 21:02 zhayujie 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 1057. StackStack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basi... 阅读全文
posted @ 2017-09-08 16:17 zhayujie 阅读(301) 评论(0) 推荐(0) 编辑