Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. For example:Given n = 13,Return ...
分类:
其他好文 时间:
2017-07-13 23:45:06
阅读次数:
224
split和spitlines,isnumeric和digit的区别?? ...
分类:
编程语言 时间:
2017-07-12 19:55:50
阅读次数:
196
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: ...
分类:
其他好文 时间:
2017-07-12 13:37:36
阅读次数:
156
这道题还是蛮有创意的一道题,是说自然数序列看成一个长字符串,问我们第N位上的数字是什么。那么这道题的关键就是要找出第N位所在的数字,然后可以把数字转为字符串,这样直接可以访问任何一位。那么我们首先来分析自然数序列和其位数的关系,前九个数都是1位的,然后10到99总共90个数字都是两位的,100到99 ...
分类:
其他好文 时间:
2017-07-11 21:22:22
阅读次数:
108
完全没想到要用对数解决这个问题,看了网上的思路觉得很妙,也学到了解决大数问题的一个新方法,在这里尝试解释一下。 求N^N的第一位数字是多少 取对数log10(N^N)=N*log10(N) N^N=10^(N*log10(N))=10^N*10^log10(N) 因为10^M当M为整数时,第一位肯定 ...
分类:
其他好文 时间:
2017-07-10 23:34:40
阅读次数:
170
258. Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is ...
分类:
其他好文 时间:
2017-07-09 23:10:22
阅读次数:
163
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho ...
分类:
其他好文 时间:
2017-07-04 00:55:49
阅读次数:
192
2703: Cow Digit Game Time Limit(Common/Java):1000MS/10000MS Memory Limit:65536KByte Total Submit: 1 Accepted:1 Description Bessie is playing a number ...
分类:
其他好文 时间:
2017-07-03 23:43:55
阅读次数:
242
Leftmost Digit Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 14696 Accepted Submission(s): 566 ...
分类:
其他好文 时间:
2017-06-29 13:32:55
阅读次数:
170
DeepLearning to digit recongnizer in kaggle 近期在看deeplearning,于是就找了kaggle上字符识别进行练习。这里我主要用两种工具箱进行求解。并比对两者的结果。两种工具箱各自是DeepLearningToolbox和caffe。Deeplearn ...
分类:
其他好文 时间:
2017-06-27 20:49:42
阅读次数:
214