Given a string, find the length of the longest
substring without repeating characters. For example, the longest substring
without repeating letters fo...
分类:
其他好文 时间:
2014-07-22 23:11:32
阅读次数:
388
1、单链表循环体用while(p->next!=NULL)而不用while(p!=NULL)的原因 node *Find_MidNode(node
*head){ if(head->next==NULL||head->next->next==NULL) return
head->next; node...
分类:
其他好文 时间:
2014-07-22 23:11:15
阅读次数:
374
前言:我们为什么要学会使用find命令?转自:http://blog.chinaunix.net/uid-24648486-id-2998767.html每一种操作系统都有成千上万的文件组成,对于linux这样“一切皆文件”的操作系统来说更不例外,大家应该都能很轻松使用windows下的文件查找功能...
分类:
系统相关 时间:
2014-07-22 23:10:56
阅读次数:
608
原地址:http://www.cnblogs.com/svage/p/3700122.html1、删除目录及子目录下的 .svn目录 find . -type
d -name ".svn" | xargs rm -rf2、/tmp 目录的权限drwxrwxrwt rwt的意思是:对目录有执行权...
分类:
系统相关 时间:
2014-07-22 23:09:34
阅读次数:
552
查看当前目录下的文件:find.-typef查看当前目录下的文件夹:find.-typed如果文件file1不为空:if[-sfile1];thenecho"file1不为空"fi#!/bin/shforfin`find./testdir-typef`;doif[-s$f];thenecho$fis...
分类:
系统相关 时间:
2014-07-22 23:09:14
阅读次数:
407
-------------------------linux常用头文件如下:POSIX标准定义的头文件
目录项 文件控制 文件名匹配类型 路径名模式匹配类型 组文件 网络数据库操作 口令文件 正则表达式 TAR归档值 终端I/O 符号常量 文件时间
字符扩展类型-------------------...
分类:
其他好文 时间:
2014-07-22 23:08:35
阅读次数:
397
这两天又看了一遍《算法导论》上面的字符串匹配那一节,下面是实现的几个程序,可能有错误,仅供参考和交流。关于详细的讲解,网上有很多,大多数算法及数据结构书中都应该有涉及,由于时间限制,在这就不重复了。需要说明的是: stra:主串,及需要从中寻找模式串的字符串 strb:模式串 《算法导论》上面包括严...
分类:
其他好文 时间:
2014-07-22 23:08:34
阅读次数:
320
Single NumberGiven an array of integers, every
element appearstwiceexcept for one. Find that single one.Note:Your algorithm
should have a linear runti...
分类:
其他好文 时间:
2014-07-22 23:07:14
阅读次数:
337
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-07-22 23:07:13
阅读次数:
379
ORM一、ORM简介 对象关系映射(Object Relational
Mapping,简称ORM)模式是一种为了解决面向对象(Java
实体类)与关系数据库(关系型数据表)存在的互不匹配的现象的技术。简单的说,ORM是通过使用描述对象和数据库之间映射的元数据,将程序中的对象自动持久化到关系数据库....
分类:
其他好文 时间:
2014-05-01 16:06:06
阅读次数:
381