码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
hdu4734 F(x)
F(x) Time Limit: 1000/500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Description For a decimal number x with n digits (AnAn-1A ...
分类:其他好文   时间:2017-09-28 20:48:41    阅读次数:148
258. Add Digits
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: 3... ...
分类:其他好文   时间:2017-09-26 21:23:08    阅读次数:175
258. Add Digits
Given a non-negative integernum, repeatedly add all its digits until the result has only one digit. For example: Givennum = 38, the process is like:3 ...
分类:其他好文   时间:2017-09-26 20:57:35    阅读次数:177
Python:字符串函数
String模块中的常量: string.digits:数字0~9 string.letters:所有字母(大小写) string.lowercase:所有小写字母 string.printable:可打印字符的字符串 string.punctuation:所有标点 string.uppercase ...
分类:编程语言   时间:2017-09-26 17:49:18    阅读次数:215
LeetCode Count Numbers with Unique Digits
原题链接在这里:https://leetcode.com/problems/count-numbers-with-unique-digits/description/ 题目: Given a non-negative integer n, count all numbers with unique ...
分类:其他好文   时间:2017-09-26 14:49:16    阅读次数:127
[leetcode] 66. Plus One 解题报告
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin ...
分类:其他好文   时间:2017-09-26 01:05:35    阅读次数:101
LeetCode问题7
Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321 Note: The input is assumed to be a 32-bit signed integer. Y ...
分类:其他好文   时间:2017-09-24 20:27:18    阅读次数:179
Python2.7-string模块
string模块 1、模块内定义的常数 字母(ascii_letters、letters),数字(digits、hexdigits、octdigits),空格(whitespace),大小写(ascii_lowercase、ascii_uppercase、lowercase、uppercase),标 ...
分类:编程语言   时间:2017-09-24 15:30:03    阅读次数:155
43. Multiply Strings
public class Solution { public String multiply(String num1, String num2) { int[] digits=new int[num1.length()+num2.length()]; for(int i=0;i=0;i--) { i... ...
分类:其他好文   时间:2017-09-24 14:36:05    阅读次数:202
[LeetCode] Maximum Swap 最大置换
Given a non-negative integer, you could swap two digits at most once to get the maximum valued number. Return the maximum valued number you could get. ...
分类:其他好文   时间:2017-09-24 09:49:03    阅读次数:125
2164条   上一页 1 ... 61 62 63 64 65 ... 217 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!