Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The l ...
分类:
其他好文 时间:
2018-04-29 11:41:03
阅读次数:
147
169.Numbers Let us call P(n) - the product of all digits of number n (in decimal notation). For example, P(1243)=1*2*4*3=24; P(198501243)=0. Let us ca ...
分类:
其他好文 时间:
2018-04-27 15:54:56
阅读次数:
143
1001. A+B Format (20) Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (u ...
分类:
其他好文 时间:
2018-04-27 13:47:16
阅读次数:
167
If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with ...
分类:
其他好文 时间:
2018-04-24 21:50:11
阅读次数:
153
#!/usr/bin/python3 # -*- coding: utf-8 -*- import random,string src = string.ascii_letters + string.digits data = random.sample(src,0) data.extend(ran... ...
分类:
编程语言 时间:
2018-04-24 20:21:23
阅读次数:
188
问题描写叙述: 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 ...
分类:
其他好文 时间:
2018-04-18 14:28:23
阅读次数:
147
Plus One question: 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 ...
分类:
其他好文 时间:
2018-04-16 19:24:32
阅读次数:
225
给定一个非负整数 n,计算各位数字都不同的数字 x 的个数,其中 0 ≤ x < 10n。示例:给定 n = 2,返回 91。(答案应该是除[11,22,33,44,55,66,77,88,99]外,0 ≤ x < 100 间的所有数字) 详见:https://leetcode.com/proble ...
分类:
其他好文 时间:
2018-04-15 16:22:52
阅读次数:
144
题目描述: 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 ...
分类:
其他好文 时间:
2018-04-14 16:27:57
阅读次数:
161
Additive number is a string whose digits can form additive sequence.A valid additive sequence should contain at least three numbers. Except for the fi ...
分类:
其他好文 时间:
2018-04-14 12:39:05
阅读次数:
161