摘要: Question: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, 4... 阅读全文
posted @ 2015-09-19 20:04 江湖小妞 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Question:Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include2, 3, 5. ... 阅读全文
posted @ 2015-09-19 19:05 江湖小妞 阅读(132) 评论(0) 推荐(0) 编辑
摘要: Question:Given an arraynums, write a function to move all0's to the end of it while maintaining the relative order of the non-zero elements.For exampl... 阅读全文
posted @ 2015-09-19 18:33 江湖小妞 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Question:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may c... 阅读全文
posted @ 2015-09-19 16:12 江湖小妞 阅读(167) 评论(0) 推荐(0) 编辑
摘要: Question:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may c... 阅读全文
posted @ 2015-09-19 14:01 江湖小妞 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 智慧石的链接:http://www.zhihuishi.com/source/1312.html 阅读全文
posted @ 2015-09-19 09:54 江湖小妞 阅读(117) 评论(0) 推荐(0) 编辑