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
Platform设备之gpio-led分析led测试以使用的9263板子为例,首先看board-sam9263ek.c的ek_board_init函数,static
void __init ek_board_init(void){ /* Serial */ at91_add_device_seria...
分类:
其他好文 时间:
2014-05-21 23:43:48
阅读次数:
306
近日再次翻看《javascript面向对象编程指南》这本书,读到浏览器环境一章,渐渐明白了js作为脚本语言,需要依托宿主环境来实现功能,从浏览器角度考虑,就是对浏览器的BOM和DOM的操作。DOM操作又可分为:访问、修改、删除、新建。每种操作都有独特的方法和属性。下面取dom节点的访问、新建和删除的功能实例来讲解(参考文章)。
function add()//动态添加表格的例子...
分类:
Web程序 时间:
2014-05-21 16:20:11
阅读次数:
299
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、
??
Add Two Numbers
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 num...
分类:
其他好文 时间:
2014-05-21 10:49:10
阅读次数:
221
ALTER TABLE
sql-statement ::=
ALTER TABLE [database-name .] table-name alteration
alteration ::=
RENAME TO new-table-name
alteration ::=
ADD [COLUMN] column-def
SQLite...
分类:
数据库 时间:
2014-05-21 08:10:45
阅读次数:
344
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
在django admin的 change_view,
add_view和delete_view页面,如果想让页面完成操作后跳转到我们想去的url,该怎么做默认django
admin会跳转到changelist_view页面------------------------------下面的代码是d...
分类:
其他好文 时间:
2014-05-21 05:31:25
阅读次数:
321