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
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
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
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
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
思路: 不是很好想的数学题。 参考了https://blog.csdn.net/litble/article/details/80924306 实现: ...
分类:
其他好文 时间:
2018-09-09 15:23:02
阅读次数:
123
描述 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
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
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
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