Evaluate Reverse Polish NotationEvaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may ...
分类:
其他好文 时间:
2014-09-10 14:09:30
阅读次数:
182
[leetcode]Reverse Linked List II...
分类:
其他好文 时间:
2014-09-10 12:36:40
阅读次数:
220
Evaluate the value of an arithmetic expression inReverse Polish Notation.Valid operators are+,-,*,/. Each operand may be an integer or another express...
分类:
编程语言 时间:
2014-09-10 05:07:09
阅读次数:
200
6种操作:add x:由于涉及到这是一个循环数组。可能有操作(尾-头)的区间,如果这样,直接将尾部的区间切下来放到最前面,然后调整那个“指针”。reverse x:同add操作一样,可能涉及(尾-头)。insert xdeletemove x:注意指针的变化query一气呵成。splay的题目赶脚就...
分类:
其他好文 时间:
2014-09-10 00:14:19
阅读次数:
493
Reverse Linked List II
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Note...
分类:
其他好文 时间:
2014-09-09 18:23:49
阅读次数:
222
1 #include 2 using namespace std; 3 4 typedef struct LNode{ 5 int data; 6 LNode* next; 7 }LNode; 8 //非递归方法, 9 LNode* reverse(LNode* head)10 ...
分类:
其他好文 时间:
2014-09-09 17:53:29
阅读次数:
216
js中的join(),reverse()与 split()函数用法解析及其拓展...
分类:
Web程序 时间:
2014-09-09 13:12:58
阅读次数:
218
[leetcode]Reverse Words in a String...
分类:
其他好文 时间:
2014-09-09 13:08:58
阅读次数:
141
[leetcode]Evaluate Reverse Polish Notation...
分类:
其他好文 时间:
2014-09-09 13:08:18
阅读次数:
175
针对main函数的运行时stack的分析
这里需要特殊说明的是运行环境是64-bits的Ubuntu.编译器是gcc
测试用代码:
int main(int argc,char* argv[])
{
int array[10];
array[0] = 10;
array[9] = 9;
return 0;
}...
分类:
其他好文 时间:
2014-09-09 12:53:08
阅读次数:
114