摘要:
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... 阅读全文
摘要:
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. ... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
智慧石的链接:http://www.zhihuishi.com/source/1312.html 阅读全文