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-11-26 01:05:29
阅读次数:
166
Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co...
分类:
其他好文 时间:
2014-11-25 14:09:53
阅读次数:
171
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
class Solution {
public:
int reverse(int x) {
int Answer=0;
...
分类:
其他好文 时间:
2014-11-25 12:45:26
阅读次数:
191
题目描述:
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /.
Each operand may be an integer or another expression.
Some examples:
...
分类:
其他好文 时间:
2014-11-25 10:53:22
阅读次数:
250
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-11-24 09:50:10
阅读次数:
168
Given a linked list, reverse the nodes of a linked listkat a time and return its modified list.If the number of nodes is not a multiple ofkthen left-o...
分类:
其他好文 时间:
2014-11-23 23:08:59
阅读次数:
332
Java中字符串的反转 首推方法: public?void?convertStr(String?str){?
????????//将String?对象转换为可改变的StringBuffer类对象?
????????//然后调用StringBuffer类的reverse()方法实现...
分类:
编程语言 时间:
2014-11-23 21:47:09
阅读次数:
200
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
#include
int reverse(int x)
{
long long tmp1=(long long)x;
long long tmp2=(long long)x;
...
分类:
其他好文 时间:
2014-11-23 18:59:33
阅读次数:
188
这题和Reverse Node in k-Group相关,主要是看如何翻转一个链表。这里是指定区间从第m个到第n个的翻转例如:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL./** * Definition for si...
分类:
其他好文 时间:
2014-11-23 17:22:49
阅读次数:
172
Evaluate Reverse Polish Notation题目描述:Evaluate the value of an arithmetic expression in Reverse Polish Notation.Valid operators are +, -,, /. Each oper...
分类:
其他好文 时间:
2014-11-23 14:25:38
阅读次数:
176