原题地址分两步:1. 试探。看是否还有k个节点可以翻转2. 翻转。[]->[]->[]->[1]->[2]->[3]->[4]->[]->[]->[]->NULL |------------------| 假设要翻转这一段翻转前: ...
分类:
其他好文 时间:
2015-01-21 21:53:32
阅读次数:
156
What?
列出目录的内容
How?
ls [-ABCFGHLOPRSTUW@abcdefghiklmnopqrstuwx1]
[file ...]
Points——常用的参数
ls -l 显示目录文件的详细信息[linux文件的属性]
ls -t 按修改时间逆序排列
ls -r reverse 按相反顺序排列
ls -F 标识文件的类型
/表示目录...
分类:
系统相关 时间:
2015-01-20 20:37:52
阅读次数:
198
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...
分类:
其他好文 时间:
2015-01-20 17:31:13
阅读次数:
136
输入两个非负10进制整数A和B( 2 #include 3 using namespace std; 4 /* 5 char str1[35]; 6 char str2[35]; 7 void Reverse(char str1 []) 8 { 9 char str[35];10 f...
分类:
其他好文 时间:
2015-01-20 13:29:34
阅读次数:
172
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is.You...
分类:
其他好文 时间:
2015-01-19 15:56:02
阅读次数:
161
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:Given m, n satisfy the following condi...
分类:
其他好文 时间:
2015-01-19 15:54:39
阅读次数:
141
题目:
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 ...
分类:
编程语言 时间:
2015-01-18 18:38:24
阅读次数:
275
题目:
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
click to show clarification.
Clarification:
What co...
分类:
编程语言 时间:
2015-01-18 14:30:02
阅读次数:
239
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 ...
分类:
其他好文 时间:
2015-01-17 22:12:46
阅读次数:
168
记得刚开始学C语言的时候,用vc的F10来调试程序,经常就是一阵狂按,然后一不小心按过了。结果又得从头再来,那时候我就问我的老师,能不能倒退回去几步。我的老师很遗憾地和我说,不行,开弓没有回头箭。这句话至今我还记得,而且,我也是一直这么认为的。 直到今天,才发现GDB竟然有反向调试这个逆天的B...
分类:
数据库 时间:
2015-01-17 16:21:05
阅读次数:
143