Simple solution: 遍历列表, 找到那个node前面的node并改变其nextFast solution: 复制那个node后面node的内容, 然后删除后面的那个nodeps: 这个方法不能用于tail那个node(如果SList的tail是个dummy node则可以)c代码201...
分类:
其他好文 时间:
2015-08-16 14:59:12
阅读次数:
125
安装完red hat enterprise linux 5后,ftp不能使用root用户,将/etc/vsftpd/ftpusers和/etc/vsftpd/user_list两个文件中的root注释掉,就是在root前加个#,再运行ftp结果报错
500 OOPS:cannot change directory:/root
500 OOPS: child died
...
分类:
其他好文 时间:
2015-08-16 13:51:56
阅读次数:
243
[LeetCode 179] Largest Number|COMMENTSQuestionlinkGiven a list of non negative integers, arrange them such that they form the largest number.For examp...
分类:
其他好文 时间:
2015-08-16 13:43:54
阅读次数:
144
连接redis代码redis.phpconnect("localhost"); //授权 $redis->auth("lamplijie"); 说明:这是入口文件,使用redis数据库必须先引入它。这样才能用php操作redis数据库。列表页list.php注册get("auth:...
分类:
其他好文 时间:
2015-08-16 13:40:15
阅读次数:
144
题目链接:http://poj.org/problem?id=3630
题意:给定n个字符串。判断是否存在其中某个字符串为另外一个字符串的前缀。若不存在输出YES。否则输出NO。
思路:裸的字典树。
代码
#include
#include
#include
#include
#include
#include
using namespace std;...
分类:
其他好文 时间:
2015-08-16 12:22:16
阅读次数:
166
brew install brew安装brew uninstall brew卸载brew search brew查找brew list 列出已安装的软件brew update 更新brewbrew home 用浏览器打开brew的官方网站brew info 显示软件信息brew deps 显示包依赖
分类:
其他好文 时间:
2015-08-16 12:11:43
阅读次数:
113
[1] Search in Rotated Sorted Array[2] Search in Rotated Sorted Array II[3] Find Minimum in Rotated Sorted Array[4] Find Minimum in Rotated Sorted Arra...
分类:
编程语言 时间:
2015-08-16 12:01:31
阅读次数:
177
题目描述:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.其实题目...
分类:
其他好文 时间:
2015-08-16 10:36:28
阅读次数:
129
package com.leegh.dataset/** * @author Guohui Li */object HelloList { def main(args: Array[String]): Unit = { val bigData = List("Hadoop", "Spark"...
分类:
编程语言 时间:
2015-08-16 09:21:02
阅读次数:
119
摘要:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.Java:/...
分类:
其他好文 时间:
2015-08-16 09:19:34
阅读次数:
86