[ 1.454380] BUG: unable to handle kernel NULL pointer dereference at 00000000000005d0[ 1.474020] IP: [] DSFW_rx_handle+0x1bb/0x370[ 1.487902] PGD 139c...
分类:
数据库 时间:
2015-07-10 12:49:49
阅读次数:
217
中等 复制带随机指针的链表
查看运行结果
27%
通过
给出一个链表,每个节点包含一个额外增加的随机指针可以指向链表中的任何节点或空的节点。
返回一个深拷贝的链表。
用了一个哈希表,空间换取时间
/**
* Definition for singly-linked list with a random pointer.
* ...
分类:
其他好文 时间:
2015-07-09 14:40:58
阅读次数:
131
https://leetcode.com/problems/populating-next-right-pointers-in-each-node/ 1 /** 2 * Definition for binary tree with next pointer. 3 * struct TreeLi.....
分类:
其他好文 时间:
2015-07-09 12:46:18
阅读次数:
91
1、基础知识 (1) 所有 Touch 事件都被封装成了 MotionEvent 对象,包括 Touch 的位置、时间、历史记录以及第几个手指(多指触摸)等。 (2) 事件类型分为 ACTION_DOWN, ACTION_UP, ACTION_MOVE, ACTION_POINTER_DOWN...
分类:
其他好文 时间:
2015-07-09 01:03:41
阅读次数:
145
This is a classic problem of linked list. You may solve it using two pointers. The tricky part lies in the head pointer may also be the one that is re...
分类:
其他好文 时间:
2015-07-07 22:25:50
阅读次数:
133
源用昨天的例子,把book.xml加载入books数据库的名为novel的collection里。
The Call Of Wild
Jack London
32.5$
2015-7-6
Wuthering Heights
Emily Bronte
40$
2015-7-5
查询一下里面的内容:
se_term -query "fo...
在Joshua Bloch很有名的一本书《Effective in java》中建议不要在代码中返回空的collection/map/array,就像下面的代码一样:public List returnCollection() { //remainder omitted if (/*so...
分类:
其他好文 时间:
2015-07-07 16:29:58
阅读次数:
126
以下两行代码在内核编译时报错。
pgd_t *pgd;
pgd = pgd_offset(current->mm, vaddr);
error如下:
error: implicit declaration of function ‘pgd_offset’
error: dereferencing pointer to incomplete type
错误解决方法:
p...
分类:
其他好文 时间:
2015-07-07 11:08:22
阅读次数:
171
有一个文件book.xml:
The Call Of Wild
Jack London
32.5$
2015-7-6
Wuthering Heights
Emily Bronte
40$
2015-7-5
创建books数据库:
[root@localhost xuzhina]#se_cdb books
Creating a datab...
分类:
其他好文 时间:
2015-07-06 18:00:44
阅读次数:
112
Read it backwards...int*- pointer to intint const *- pointer to const intint * const- const pointer to intint const * const- const pointer to const in...
分类:
其他好文 时间:
2015-07-05 23:55:13
阅读次数:
97