摘要: Ugly NumberⅡWrite a program to find then-th ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. For example,1, 2, 3... 阅读全文
posted @ 2015-10-29 23:22 Decmber 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Implement Queue using Stacksclass MyQueue { Stack s1 = new Stack(); Stack s2 = new Stack(); // Push element x to the back of queue. ... 阅读全文
posted @ 2015-10-29 21:43 Decmber 阅读(168) 评论(0) 推荐(0) 编辑