码迷,mamicode.com
首页 >  
搜索关键字:factors    ( 282个结果
263. Ugly Number
Write a program to check whether a given number is an ugly number. Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For exa ...
分类:其他好文   时间:2016-04-15 18:18:03    阅读次数:119
lintcode:Ugly Number I
Ugly Number Write a program to check whether a given number is an ugly number`. Ugly numbers are positive numbers whose prime factors only include 2,  ...
分类:其他好文   时间:2016-04-11 11:46:41    阅读次数:152
lintcode-medium-Super Ugly Number
Write a program to find the nth super ugly number. Super ugly numbers are positive numbers whose all prime factors are in the given prime list primes ...
分类:其他好文   时间:2016-04-07 08:20:37    阅读次数:124
lintcode-medium-Ugly Number II
Ugly number is a number that only have factors 2, 3 and 5. Design an algorithm to find the nth ugly number. The first 10 ugly numbers are 1, 2, 3, 4, ...
分类:其他好文   时间:2016-04-07 07:11:09    阅读次数:149
lintcode-easy-Ugly Number
Write a program to check whether a given number is an ugly number`. Ugly numbers are positive numbers whose prime factors only include 2,3, 5. For exa ...
分类:其他好文   时间:2016-04-07 07:08:38    阅读次数:154
[LeetCode] Factor Combinations 因子组合
Numbers can be regarded as product of its factors. For example, Write a function that takes an integer n and return all possible combinations of its f ...
分类:其他好文   时间:2016-03-29 14:52:42    阅读次数:169
Project Euler:Problem 47 Distinct primes factors
The first two consecutive numbers to have two distinct prime factors are: 14 = 2 × 7 15 = 3 × 5 The first three consecutive numbers to have three dist
分类:其他好文   时间:2016-03-07 10:10:09    阅读次数:142
LeetCode(313):Super Ugly Number
Super Ugly Number: Write a program to find the nth super ugly number.Super ugly numbers are positive numbers whose all prime factors are in the given ...
分类:其他好文   时间:2016-03-06 20:40:54    阅读次数:126
LeetCode(264):Ugly Number II
Ugly Number II:Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1...
分类:其他好文   时间:2016-03-05 20:31:38    阅读次数:191
Humble Numbers
Humble Numbers For a given set of K prime numbers S = {p1, p2, ..., pK}, consider the set of all numbers whose prime factors are a subset of S. This s
分类:其他好文   时间:2016-02-09 01:15:07    阅读次数:171
282条   上一页 1 ... 13 14 15 16 17 ... 29 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!