最近工作编辑文件时误操作弄出一个特殊字符文件,怎么转换都删除不了,可能我转换的能力有限。。。 然后想到可以根据文件节点来删除,具体操作参考如下: 1. ls -i 列出当前目录下所有文件的节点ID和文件名 2. rm -rf "`find -inum ${NODE_ID}`", ${NOD...
分类:
系统相关 时间:
2015-06-06 17:59:26
阅读次数:
153
http://www.51nod.com/onlineJudge/questionCode.html#problemId=1007¬iceId=15020求出n个数的和sum,然后用sum/2作为背包容量,让n个数去放,求出一个最大价值,那么这就是其中一组的和,另外一组的和就是sum-dp[s...
分类:
其他好文 时间:
2015-06-04 15:35:52
阅读次数:
142
No.2 Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nod...
分类:
其他好文 时间:
2015-06-01 18:14:15
阅读次数:
111
1 Partition List
Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the original relative order of the nod...
分类:
编程语言 时间:
2015-05-31 09:33:34
阅读次数:
239
1 //寻找先一个元素节点的函数,把一个元素的下一个节点(nextSibing)作为参数传给该函数,经过筛选返回元素节点 2 function nextElementSiblings(node){ 3 if(node.nodeType == 1){ 4 return nod...
分类:
Web程序 时间:
2015-05-31 01:13:52
阅读次数:
220
对“到文件结束”理解
代码:
#include
#include
#include
using namespace std;
struct node
{
char name[20];
int num;
int t;
void init()
{
t=0;
num=0;
}
};
int cmp(const nod...
分类:
编程语言 时间:
2015-05-30 09:25:57
阅读次数:
149
这基于是node-mysql官方文档的部分中文翻译,由于最近要在nodejs上使用mysql,看文档的时候顺带把这个文档部分翻译了,无责任翻译,不齐全也可能有些地方不对,不好勿喷。node-mysql 项目地址
我的博客安装安装稳定版本:$ npm install mysql安装最新版本:$ npm install felixge/node-mysql介绍这是一个用Javascript编写的Nod...
分类:
数据库 时间:
2015-05-28 11:01:11
阅读次数:
350
ubuntu下安装 node npm相关 ? ? ? ? ??apt-get update ? ? ? ? ? apt-get install -y python-software-properties software-properties-common ? ? ? ? ? add-apt-repository ppa:chris-lea/nod...
分类:
Web程序 时间:
2015-05-21 12:56:31
阅读次数:
182
package com.cici.深圳同城快跑;import java.util.Stack;class Node{public char cData; // data item (key)public Node leftChild; // this nod...
分类:
其他好文 时间:
2015-05-18 18:48:48
阅读次数:
126
题目大意:给出一棵N个点的树,每条边都有相应的权值。
先给出K,要求你找出权值小于等于k的(u,v)对解题思路:具体的思路可以参考漆子超的《分治算法在树的路径问题中的应用》这篇论文。#include
#include
#include
using namespace std;
#define maxn 10010
vector Nod...
分类:
其他好文 时间:
2015-05-16 09:11:42
阅读次数:
158