Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After ...
分类:
其他好文 时间:
2014-08-24 19:13:32
阅读次数:
194
栈
栈类似于箱子。
静态栈、动态栈。
关于栈的操作
#include
#include
#include
typedef struct Node
{
int data;
struct Node *pNext;
}NODE, *PNODE;
typedef struct Stack
{
PNODE pTop;
PNODE pBottom;
}STACK, *PSTACK;
...
分类:
其他好文 时间:
2014-08-24 16:45:42
阅读次数:
179
CentOS下的Python版本一般都比较低,很多应用都需要升级python来完成。我装的centOS的默认的python版本是V2.4.3,但运行node.js需要的版本是2.5以上。 1。下载python3.3安装包:wget http://www.python.org/ftp/python/3...
分类:
编程语言 时间:
2014-08-24 16:38:52
阅读次数:
221
今天碰到一个奇怪的错误.events.js:72 throw er; // Unhandled 'error' event ^Error: Parse Error at Socket.socketOnData (http.js:1583:20) a...
分类:
Web程序 时间:
2014-08-24 16:36:22
阅读次数:
202
024.链表的创建和链表遍历的算法演示
#include
#include
#include
typedef struct Node
{
int data;
struct Node *pNext;
}NODE, *PNODE; //NODE 等价于struct Node, PNODE 等价于struct Node *
//函数声明
PNODE create_list(void);
...
分类:
其他好文 时间:
2014-08-24 15:30:32
阅读次数:
175
简述今天在写 sql时遇到一个情况,表 A中的 ID 是按照 TREE结构存储的。现在需要和表 B中的 NODE_ID连接,取出 B中 NODE_ID可以和 A中任意一个 level的 NODE_ID连接的信息。但是表 B中的 NODE_ID 具体对应到表 A中哪个 level是未知的。对此,最先想...
分类:
数据库 时间:
2014-08-24 15:21:02
阅读次数:
480
本文主要梳理了几种语言的传参机制,即关于 传值、传引用 之争最近开始学node.js搭后端服务器时,碰到这样一句话 java只有一种传参机制就是传值javascript其大部分语法规范取自于JAVA语法规范, 那么这种句话也适用于它,于是也有javascript只有一种传参机制就是传值为了理解这句话...
分类:
编程语言 时间:
2014-08-24 07:01:32
阅读次数:
257
原文地址:http://blog.csdn.net/haidaochen/article/details/7257655红色字体为本人新增内容。Windows平台下的node.js安装直接去nodejs的官网http://nodejs.org/上下载nodejs安装程序,双击安装就可以了测试安装是否...
2014-08-23今天开始学习Node.js,在写一个文件上传的功能时候,调用fs.renameSync方法错误出错代码所在如下: 1 function upload(response,request){ 2 console.log("upload called"); 3 va...
分类:
Web程序 时间:
2014-08-24 00:17:21
阅读次数:
376
解题报告
思路:
spfa判负环。
#include
#include
#include
#include
#define inf 0x3f3f3f3f
#define N 40000
#define M 100000
using namespace std;
struct node {
int v,w,next;
} edge[M];
int head[N],dis[N],...
分类:
其他好文 时间:
2014-08-23 20:25:41
阅读次数:
261