Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321Have you thought about this?Here are some good questions to ask...
分类:
其他好文 时间:
2014-10-07 15:47:23
阅读次数:
204
//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 the head of the list.
//digits={9,9,9,...
分类:
其他好文 时间:
2014-10-06 13:46:10
阅读次数:
200
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 ...
分类:
其他好文 时间:
2014-10-05 23:28:39
阅读次数:
357
任务:随机地创造出新密码。比如,有时需要给新的用户账号分配新的密码。解决方案:from random import choiceimport stringdef GenPasswd(length=8,chars=string.letters+string.digits): return ''....
分类:
其他好文 时间:
2014-10-05 22:38:49
阅读次数:
122
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321 1 #include 2 #include 3 #include 4 5 using namespace std; ...
分类:
其他好文 时间:
2014-10-03 16:30:14
阅读次数:
223
Sum Root to Leaf NumbersGiven a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-l...
分类:
其他好文 时间:
2014-10-02 03:56:22
阅读次数:
198
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 ...
分类:
其他好文 时间:
2014-10-02 02:34:02
阅读次数:
227
Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321click to show spoilers.Have you thought about this?Here are som...
分类:
其他好文 时间:
2014-10-02 01:43:12
阅读次数:
140
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...
分类:
其他好文 时间:
2014-09-30 04:40:32
阅读次数:
182
题目描述:Reverse digits of an integer.Example1:x = 123, return 321Example2:x = -123, return -321解题方案:该题比较简单,直接贴代码: 1 class Solution { 2 public: 3 int ...
分类:
其他好文 时间:
2014-09-29 23:48:01
阅读次数:
164