原题地址:https://oj.leetcode.com/problems/reverse-nodes-in-k-group/题意:Given a linked list, reverse the nodes of a linked listkat a time and return its mod...
分类:
编程语言 时间:
2014-06-15 21:24:43
阅读次数:
293
1:定义流的header , OleContainer要求流中要有Headertype//流Header的结构TStreamHeader = recordSignature: Integer; //$434F4442DrawAspect: Integer; //1DataSize: Integer;...
分类:
其他好文 时间:
2014-06-15 21:10:28
阅读次数:
472
& produces the address of its operand. For example,the following statements an integer variable 'a' and apointer to an integer variable 'p' are dec...
分类:
其他好文 时间:
2014-06-15 20:41:58
阅读次数:
155
Reverse Integer反转一个整数C++ Code1234567891011121314151617181920212223242526272829303132classSolution{public:intreverse(intx){/*一位数的情况*/if(-10=10){div*=10...
分类:
其他好文 时间:
2014-06-15 20:19:20
阅读次数:
196
RI (Reverse Integration) / FI (Forward Integration)RI :child branch => parent branchFI :parent branch =>child branch
分类:
其他好文 时间:
2014-06-15 16:52:09
阅读次数:
216
只有C、X、I可以作为前缀,后缀的情况不需要考虑,直接加上去即可,我的代码还不是很简洁,请指正
{CSDN:CODE:389739}...
分类:
其他好文 时间:
2014-06-15 08:58:39
阅读次数:
174
QUOTE:Integer a=1;//这就是一个自动装箱,如果没有自动装箱的话,需要这样Integer a=new Integer(1)int b=a;//这就是一个自动拆箱,如果没有自动拆箱的话,需要这样:int b=a.intValue()这样就能看出自动装箱和自动拆箱是简化了基本数据类型和相...
分类:
其他好文 时间:
2014-06-14 16:38:18
阅读次数:
190
Reverse a linked list from positionmton. Do it in-place and in one-pass.For example:Given1->2->3->4->5->NULL,m= 2 andn= 4,return1->4->3->2->5->NULL.No...
分类:
其他好文 时间:
2014-06-14 13:15:06
阅读次数:
199
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2014-06-14 08:52:31
阅读次数:
265
真的被这道题目恶心到了。。。281行代码。。。比一个模拟题还费事。。。
为了方便起见,在数列的前面和后面都加一个0点。
add x :把第k2+2个点旋转至root1.然后sum[root10]+=x;
reverse:把第k1+2个点旋转至root1.然后rev[root10]^=1;
insert x:得到第2个点,然后在第2个点之后插入x。
delete
:把第1个点旋...
分类:
其他好文 时间:
2014-06-14 00:54:26
阅读次数:
324