码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
[LeetCode]1295. Find Numbers with Even Number of Digits
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
129. Sum Root to Leaf Numbers
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
Leetcode 7. Reverse Integer
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
leetcode17 Letter Combinations of a Phone Number
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
PAT Advanced 1060 Are They Equal (25分)
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
Codeforces Round #616(Div.2) Even But Not Even
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
PAT Advanced 1069 The Black Hole of Numbers (20分)
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
66 plus one
| 分类 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
C - Beautiful Now
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
PAT Advanced 1136 A Delayed Palindrome (20分)
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
2164条   上一页 1 ... 10 11 12 13 14 ... 217 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!