Problem:Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Yo...
分类:
其他好文 时间:
2014-10-20 13:15:42
阅读次数:
195
系统 # uname -a # 查看内核/操作系统/CPU信息# head -n 1 /etc/issue # 查看操作系统版本# cat /proc/cpuinfo # 查看CPU信息# hostname # 查看计算机名# lspci -tv # 列出所有PCI设备# lsusb -tv # 列...
分类:
系统相关 时间:
2014-10-20 11:21:30
阅读次数:
264
Given a linked list, swap every two adjacent nodes and return its head.For example,Given 1->2->3->4, you should return the list as 2->1->4->3.Your alg...
分类:
其他好文 时间:
2014-10-20 09:49:08
阅读次数:
181
#include
#include
#define maxn 1010
int n, A[maxn], B[maxn];
bool vis[maxn];
int head[maxn], id;
struct Node {
int v, next;
} E[maxn * maxn];
void addEdge(int u, int v) {
E[id].v = v; E[id].nex...
分类:
其他好文 时间:
2014-10-20 08:45:10
阅读次数:
157
注意:javascript中的CSS样式与非javascript中的样式不同,在非javascript中的样式字体大小:font-size,而在javascript中则是fontSize.在非javascript中的样式中“-”改写为第二个字母大写<!DOCTYPEhtml><htmlxmlns="http://www.w3.org/1999/xhtml"><head>&l..
分类:
编程语言 时间:
2014-10-20 02:14:28
阅读次数:
202
<!DOCTYPEhtml><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/><title></title><styletype="text/css">#divQQ{width:500px;height:350px;border:2pxdotted#00..
分类:
编程语言 时间:
2014-10-20 02:13:56
阅读次数:
228
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" co...
分类:
Web程序 时间:
2014-10-19 18:42:55
阅读次数:
306
第一节、解密QQ号——队列p29 解密QQ号——队列#include int main(){ int q[102]={0,6,3,1,7,5,8,9,2,4},head,tail; //int i; //初始化队列 head=1; tail=10; //队列中已经有9个...
分类:
其他好文 时间:
2014-10-19 11:33:19
阅读次数:
136
1.首先在code.h中查看PyCodeObject的struct 1 typedef struct { 2 PyObject_HEAD 3 int co_argcount; /* #arguments, except *args */ 4 int co_nlo...
分类:
编程语言 时间:
2014-10-19 09:02:53
阅读次数:
287
Problem:Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. ...
分类:
其他好文 时间:
2014-10-19 01:12:55
阅读次数:
190