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
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Clarification:What constitutes...
分类:
编程语言 时间:
2014-09-09 12:07:48
阅读次数:
223
Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2...
分类:
其他好文 时间:
2014-09-09 11:32:38
阅读次数:
240
Techniques for configuring ahypervisorschedulerto make use of cache topology of processors and physical memory distances between NUMA nodes when makin...
分类:
其他好文 时间:
2014-09-09 11:31:48
阅读次数:
296