题意: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a sin ...
分类:
其他好文 时间:
2016-07-31 20:46:31
阅读次数:
139
Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the f ...
分类:
其他好文 时间:
2016-07-31 14:32:07
阅读次数:
199
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Example: Given n = 2, return 91. (The answer should be the ...
分类:
其他好文 时间:
2016-07-31 09:09:00
阅读次数:
152
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2016-07-30 22:16:30
阅读次数:
116
DescriptionGiven a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation contains only the digits 0 and 1. You may assume that n is not greater than 200...
分类:
其他好文 时间:
2016-07-30 10:39:26
阅读次数:
106
258. Add Digits Digit root 数根问题 性质说明 1.任何数加9的数字根还是它本身。(特殊情况num=0) 小学学加法的时候我们都明白,一个数字加9,就是把十位加1,各位减1。因此十位加个位的和是不变的;如果有进位,即十位上是9,那么进位之后十位会变成0,百位会加1,道理和一 ...
分类:
编程语言 时间:
2016-07-29 19:02:24
阅读次数:
115
93. Restore IP Addresses Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given ...
分类:
其他好文 时间:
2016-07-25 08:10:58
阅读次数:
186
Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 click to show spoilers. Have you thought about this? Here a ...
分类:
其他好文 时间:
2016-07-25 00:12:45
阅读次数:
193
字符串操作符比较操作符:字符串大小按ASCLL码值大小进行比较切片操作符:[]、[:]、[::]成员关系操作符:in、notin脚本:判断用户输入的id是否符合要求#!/usr/bin/envpythonimportstring#定义字符的范围first_id=string.letters+"_"//确定首字符的范围all_id=string.digits+fir..
分类:
编程语言 时间:
2016-07-23 21:23:10
阅读次数:
250
Revolving Digits Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 24729 Accepted Submission(s): 53 ...
分类:
其他好文 时间:
2016-07-23 15:00:19
阅读次数:
197