Find common nodes of 2 linked list.
分类:
其他好文 时间:
2014-05-22 00:10:17
阅读次数:
241
Print a linked list from last to first.
分类:
其他好文 时间:
2014-05-22 00:06:27
阅读次数:
258
Delete node in linked list in O(1).
分类:
其他好文 时间:
2014-05-22 00:05:51
阅读次数:
190
Iptables防火墙配置
安装防火墙
sudo apt-get install iptables
查看状态
sudo iptables --list
sudo iptables -A OUTPUT -p tcp --dport 80 -j DROP
浏览器不能上网
清除防火墙设置
Sudo iptables -F
Sudo iptables -D OUTPUT...
分类:
其他好文 时间:
2014-05-21 16:18:12
阅读次数:
316
1. 准备2. 语法和语义3. 为我们的游戏世界定义数据4. 环顾我们的游戏世界5. 函数式编码风格6. 环游我们的游戏世界7. 构建SPELs8. 创建特殊操作9. 附录10. 为什么没有使用”宏”这个词11. 译者感想
本文翻译自:Casting SPELs in Clojure
1 准备
任何学过Lisp的人都会说List和其它语言有很大的不同.它有很多...
分类:
其他好文 时间:
2014-05-21 15:53:25
阅读次数:
249
介绍list item倒序显示
LayoutAnimation3.java
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file e...
分类:
其他好文 时间:
2014-05-21 08:25:44
阅读次数:
278
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 fol...
分类:
其他好文 时间:
2014-05-21 07:18:02
阅读次数:
301
Subset
Time Limit: 30000MS
Memory Limit: 65536K
Total Submissions: 1562
Accepted: 261
Description
Given a list of N integers with absolute values no larger than 1015,...
分类:
其他好文 时间:
2014-05-21 07:16:37
阅读次数:
409