题目: 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 s.....
分类:
其他好文 时间:
2015-10-01 14:02:44
阅读次数:
141
[Problem]You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain ...
分类:
其他好文 时间:
2015-09-30 23:16:00
阅读次数:
186
在C++编程中,有时候要求我们把数据保留小数点后几位,或是保留多少位有效数字等等,那么就要用到setiosflags和setprecision函数,记得要包含头文件#include ,请参考下面的示例:#include #include // Need this using namespac...
分类:
编程语言 时间:
2015-09-29 13:01:49
阅读次数:
231
主题链接:http://acm.hdu.edu.cn/showproblem.php?pid=5055Problem DescriptionRecently, Bob has been thinking about a math problem.There are N Digits, each di...
分类:
其他好文 时间:
2015-09-26 12:03:52
阅读次数:
188
Question:Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is ...
分类:
其他好文 时间:
2015-09-23 16:19:25
阅读次数:
188
翻译翻转一个整型数例1:x = 123, 返回 321
例2:x = -123, 返回 -321原文Reverse digits of an integer.Example1: x = 123, return 321
Example2: x = -123, return -321Have you thought about this? (来自LeetCode官网)Here are some good...
分类:
其他好文 时间:
2015-09-23 10:35:41
阅读次数:
147
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...
分类:
其他好文 时间:
2015-09-22 10:11:38
阅读次数:
130
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-09-22 06:38:14
阅读次数:
144
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 ...
分类:
其他好文 时间:
2015-09-22 06:38:00
阅读次数:
238
1、题目名称 Reverse Integer(翻转数字) 2、题目地址 https://leetcode.com/problems/reverse-integer/ 3、题目内容 英文:Reverse digits of an integer. 中文:翻转一个正整数的各位,形成一个新数字 例如:x...
分类:
其他好文 时间:
2015-09-20 22:32:10
阅读次数:
288