Given an array nums of integers, return how many of them contain an even number of digits. Example 1: Input: nums = [12,345,2,6,7896]Output: 2Explanat ...
分类:
其他好文 时间:
2020-02-10 17:53:55
阅读次数:
65
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 whic ...
分类:
其他好文 时间:
2020-02-07 10:41:25
阅读次数:
56
Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123Output: 321Example 2: Input: -123Output: -321Example 3: Input: 120Ou ...
分类:
其他好文 时间:
2020-02-06 19:49:49
阅读次数:
65
1 """ 2 Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. 3 A mapping of d ...
分类:
其他好文 时间:
2020-02-06 16:44:30
阅读次数:
70
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 with simple c ...
分类:
其他好文 时间:
2020-02-05 18:21:41
阅读次数:
84
Let's define a number ebne (even but not even) if and only if its sum of digits is divisible by 22 but the number itself is not divisible by 22. For e ...
分类:
其他好文 时间:
2020-02-03 15:36:17
阅读次数:
55
For any 4-digit integer except the ones with all the digits being the same, if we sort the digits in non-increasing order first, and then in non-decre ...
分类:
其他好文 时间:
2020-02-02 13:39:18
阅读次数:
58
| 分类 leetcode | Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most signifi... ...
分类:
其他好文 时间:
2020-01-29 12:44:58
阅读次数:
82
Anton has a positive integer nn, however, it quite looks like a mess, so he wants to make it beautiful after kk swaps of digits. Let the decimal repre ...
分类:
其他好文 时间:
2020-01-29 12:32:38
阅读次数:
60
Consider a positive integer N written in standard notation with k+1 digits a?i?? as a?k???a?1??a?0?? with 0 for all i and a?k??>0. Then N is palindrom ...
分类:
其他好文 时间:
2020-01-27 17:31:19
阅读次数:
64