码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
[Leetcode] Longest Consecutive Sequence
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.For example,Given[100, 4, 200, 1, 3, 2],The longest ...
分类:其他好文   时间:2014-07-22 23:16:14    阅读次数:408
Longest Substring Without Repeating Characters
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
20140429
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
linux find用法总结
前言:我们为什么要学会使用find命令?转自:http://blog.chinaunix.net/uid-24648486-id-2998767.html每一种操作系统都有成千上万的文件组成,对于linux这样“一切皆文件”的操作系统来说更不例外,大家应该都能很轻松使用windows下的文件查找功能...
分类:系统相关   时间:2014-07-22 23:10:56    阅读次数:608
(转)linux常用命令
原地址: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
linux获取目录下文件
查看当前目录下的文件: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
PageObject
1.目的:为了将元素的find方法和业务逻辑分开来。如果元素的页面位置发生了变化,只需改动一个文件,而不影响业务的实现。2.原理:一般一个页面对应一个class,在class里描述所有要用到的webelement。通过PageFactory.initWebElement(Webdriver d,th...
分类:其他好文   时间:2014-04-30 17:58:23    阅读次数:337
【HDOJ】3560 Graph’s Cycle Component
并查集的路径压缩。 1 #include 2 #include 3 4 #define MAXNUM 100005 5 6 int deg[MAXNUM], bin[MAXNUM]; 7 char isCycle[MAXNUM]; 8 9 int find(int x) {10 i...
分类:其他好文   时间:2014-04-29 17:22:46    阅读次数:308
six solutions to a single symmetrical problem
Problem description:given a string, find the longest palindrome string in itSolution:1.brute force O(n^3)just enumerate start and end of the substring...
分类:其他好文   时间:2014-04-29 17:22:46    阅读次数:308
VC6微软正则表达式greta使用案例
#include#include"regexpr2.h"usingnamespacestd;usingnamespaceregex;//greta库的命名空间//若链接出错,设置MFC静态链接//查找匹配串//返回结果匹配串(CStringArray数组指针类型)CStringArray*Find(...
分类:其他好文   时间:2014-04-29 17:15:48    阅读次数:363
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!