Add DigitsGiven a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is...
分类:
其他好文 时间:
2015-08-16 15:11:22
阅读次数:
80
TO_DATE格式(以时间:2007-11-02 13:45:25为例) Year: yy two digits 两位年 显示值:07 yyy three digits 三位年 显示值:007 yyyy four digits 四位年 显示值:2007 Month: mm number 两位月 显....
分类:
数据库 时间:
2015-08-16 15:09:43
阅读次数:
206
Thedigital root(alsorepeated digital sum) of anon-negative integeris the (single digit) value obtained by an iterative process ofsumming digits规律题题意 ....
分类:
其他好文 时间:
2015-08-16 12:01:55
阅读次数:
98
1082. Read Number in Chinese (25)Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output "Fu" ...
分类:
其他好文 时间:
2015-08-16 00:31:06
阅读次数:
187
【129-Sum Root to Leaf Numbers(所有根到叶子结点组组成的数字相加)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.
An example...
分类:
编程语言 时间:
2015-08-15 06:44:54
阅读次数:
114
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 at...
分类:
其他好文 时间:
2015-08-14 15:16:01
阅读次数:
93
每个数字对应多个字符,给定一个数字串,给出所有与这个数字串对应的字符串。一、使用递归的方式最容易想到了 1 import java.util.*; 2 3 public class Solution { 4 void backtree(String digits,int index,Str...
分类:
其他好文 时间:
2015-08-14 13:20:13
阅读次数:
106
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:
其他好文 时间:
2015-08-14 11:45:41
阅读次数:
88
额,可能是我的理解能力太差吧,我还是要解释一下。例如 999, 那么传入的 vector 就是 9, 9, 9那么加一之后,返回的就是 1, 0, 0, 0vector plusOne(vector& digits) { ++*(digits.end() - 1); for (auto ...
分类:
编程语言 时间:
2015-08-13 23:38:12
阅读次数:
202
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...
分类:
其他好文 时间:
2015-08-13 14:03:05
阅读次数:
100