摘要: Stefan is a hero! Personally, I love his first C++ solution. 1 class Solution { 2 public: 3 int nthUglyNumber(int n) { 4 vector ugly(n, 1)... 阅读全文
posted @ 2015-08-19 16:32 jianchao-li 阅读(245) 评论(0) 推荐(0)
摘要: No matter what language you use on the OJ, you may refer to Stefan's post for a solution. The C++ is rewritten below, just really concise.1 class Solu... 阅读全文
posted @ 2015-08-19 16:28 jianchao-li 阅读(213) 评论(0) 推荐(0)