For a positive integerN, the digit-sum ofNis defined as the sum ofNitself and its digits. WhenMis the digitsum ofN, we callNageneratorofM.For example,...
分类:
其他好文 时间:
2015-02-21 00:15:15
阅读次数:
153
The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. F...
分类:
其他好文 时间:
2015-02-20 11:53:35
阅读次数:
249
机器学习Machine Learning - Andrew NG
courses学习笔记
Classification
0、1表示含义
denote with 0 is the negative class
denote with 1 is the positive class.
Hypothesis Representation
Decisi...
分类:
系统相关 时间:
2015-02-19 23:00:48
阅读次数:
350
The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev...
分类:
其他好文 时间:
2015-02-19 12:55:04
阅读次数:
139
就像这道题的题目一样,真的是一个简单的题目,题意就是一句话:给一个数N求符合公式N = O * 2P的 O 和 P。下面我们就一起看一下题吧。DescriptionGiven a positive integer n and the odd integer o and the nonnegative integer p such that n = o2^p.ExampleFor n = 24, o...
分类:
其他好文 时间:
2015-02-19 00:18:53
阅读次数:
226
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
思路:Beca...
分类:
其他好文 时间:
2015-02-18 17:41:13
阅读次数:
214
Drazil is playing a math game with Varda.Let’s define for positive integer x as a product of factorials of its digits. For example, .First, they choose a decimal number a consisting of n digits that co...
分类:
其他好文 时间:
2015-02-18 13:02:15
阅读次数:
103
Drazil is playing a math game with Varda.
Let’s define for positive integer x as a product of factorials of its digits. For example, .
First, they choose a decimal number a consisting of n digits that contain...
分类:
其他好文 时间:
2015-02-18 06:13:14
阅读次数:
172
DescriptionIfaanddare relatively prime positive integers, the arithmetic sequence beginning withaand increasing byd, i.e.,a,a+d,a+ 2d,a+ 3d,a+ 4d, ......
分类:
其他好文 时间:
2015-02-17 23:33:27
阅读次数:
134
Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is "yes", if 6 is a decimal number and 110 is...
分类:
其他好文 时间:
2015-02-17 12:53:45
阅读次数:
155