码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
7. Reverse Integer
Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Input: 1... ...
分类:其他好文   时间:2018-09-20 18:47:40    阅读次数:181
leetcode282 - Expression Add Operators - hard
Given a string that contains only digits 0-9 and a target value, return all possibilities to add binary operators (not unary) +, -, or *between the di ...
分类:其他好文   时间:2018-09-14 12:44:45    阅读次数:147
66. Plus One
1 class Solution { 2 public int[] plusOne(int[] digits) { 3 int n = digits.length; 4 int[] res = new int[n+1]; 5 int carry = 0; 6 for(int i = n - 1; i... ...
分类:其他好文   时间:2018-09-13 14:24:36    阅读次数:101
【CodeForces 915 C】Permute Digits(思维+模拟)
You are given two positive integer numbers a and b. Permute (change order) of the digits of a to construct maximal number not exceeding b. No number i ...
分类:其他好文   时间:2018-09-12 14:04:29    阅读次数:176
Plus One 加一运算
Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is a ...
分类:其他好文   时间:2018-09-11 23:51:29    阅读次数:203
CF997B Roman Digits
思路: 不是很好想的数学题。 参考了https://blog.csdn.net/litble/article/details/80924306 实现: ...
分类:其他好文   时间:2018-09-09 15:23:02    阅读次数:123
【TOJ 4493】Remove Digits(单调栈贪心)
描述 Given an N-digit number, you should remove K digits and make the new integer as large as possible. Given an N-digit number, you should remove K dig ...
分类:其他好文   时间:2018-09-08 11:41:36    阅读次数:139
[leetcode][2] Add Two Numbers
2. Add Two Numbers You are given two non empty linked lists representing two non negative integers. The digits are stored in reverse order and each of ...
分类:其他好文   时间:2018-09-07 15:56:30    阅读次数:152
pat 1132 Cut Integer(20 分)
Cutting an integer means to cut a K digits lone integer Z into two integers of (K/2) digits long integers A and B. For example, after cutting Z = 1673 ...
分类:其他好文   时间:2018-09-07 00:58:08    阅读次数:215
[leetcode][66] Plus One
66. Plus One Given a non empty array of digits representing a non negative integer, plus one to the integer. The digits are stored such that the most ...
分类:其他好文   时间:2018-09-06 23:52:54    阅读次数:242
2164条   上一页 1 ... 38 39 40 41 42 ... 217 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!