码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
Leetcode2 Add Two Numbers
题意: 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
[leetcode] 306. Additive Number
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
LeetCode- Count Numbers with Unique Digits
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
Leetcode 2. Add Two Numbers
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
poj1426——Find The Multiple(BFS)
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
LeetCode Javascript解答 258. Add Digits
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
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
leetcode 7. Reverse Integer
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
以写代学:python 数据类型之字符串,判断用户输入的id是否符合要求
字符串操作符比较操作符:字符串大小按ASCLL码值大小进行比较切片操作符:[]、[:]、[::]成员关系操作符:in、notin脚本:判断用户输入的id是否符合要求#!/usr/bin/envpythonimportstring#定义字符的范围first_id=string.letters+"_"//确定首字符的范围all_id=string.digits+fir..
分类:编程语言   时间:2016-07-23 21:23:10    阅读次数:250
字符串(扩展KMP):HDU 4333 Revolving Digits
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
2164条   上一页 1 ... 94 95 96 97 98 ... 217 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!