摘要: 自己的做法超时了。主要是每次生成一个数据,保存到list中,然后对List重新排序。排序太耗费时间记录下讨论组里的写法public int NthUglyNumber(int n) { int[] ugly = new int[n]; ugly[0] = 1; int i... 阅读全文
posted @ 2015-08-20 10:30 darksied 阅读(138) 评论(0) 推荐(0) 编辑