The decimal expansion of the fraction 1/33 is 0.03, where the 03 is used to indicate that the cycle 03 repeats inde?nitely with no intervening digits. ...
分类:
其他好文 时间:
2019-02-16 09:27:03
阅读次数:
147
For a non-negative integer X, the array-form of X is an array of its digits in left to right order. For example, if X = 1231, then the array form is [ ...
分类:
其他好文 时间:
2019-02-11 11:00:59
阅读次数:
233
For a non-negative integer X, the array-form of X is an array of its digits in left to right order. For example, if X = 1231, then the array form is [ ...
分类:
其他好文 时间:
2019-02-11 01:14:49
阅读次数:
160
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 ...
分类:
其他好文 时间:
2019-02-09 01:06:24
阅读次数:
134
"Niven Numbers" Time Limit: 2 Seconds Memory Limit: 65536 KB A Niven number is a number such that the sum of its digits divides itself. For example, 1 ...
分类:
其他好文 时间:
2019-02-08 10:24:27
阅读次数:
286
This problem was asked by Microsoft. A number is considered perfect if its digits sum up to exactly 10. Given a positive integer n, return the n-th pe ...
分类:
其他好文 时间:
2019-02-06 09:26:03
阅读次数:
187
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Example: Input: 2 Output: 91 Explanation: The answer shoul ...
分类:
其他好文 时间:
2019-02-05 23:49:45
阅读次数:
219
各位相加 给定一个非负整数 num,反复将各个位上的数字相加,直到结果为一位数。 示例: 进阶:你可以不使用循环或者递归,且在 O(1) 时间复杂度内解决这个问题吗? 题目地址 https://leetcode-cn.com/problems/add-digits/ 代码模板 测试数据 笔者的方法: ...
分类:
编程语言 时间:
2019-02-05 20:57:38
阅读次数:
265
算法描述: Given a string containing only digits, restore it by returning all possible valid IP address combinations. Example: 解题思路:题目要求所有可能的结果,首先想到回溯法。重点有 ...
分类:
其他好文 时间:
2019-02-02 14:17:56
阅读次数:
209
算法描述: A message containing letters from A-Z is being encoded to numbers using the following mapping: Given a non-empty string containing only digits, ...
分类:
其他好文 时间:
2019-02-02 12:39:00
阅读次数:
159