码迷,mamicode.com
首页 >  
搜索关键字:find file    ( 74561个结果
《Cracking the Coding Interview》——第18章:难题——题目7
2014-04-29 03:05题目:给定一个词典,其中某些词可能能够通过词典里其他的词拼接而成。找出这样的组合词里最长的一个。解法:Leetcode上有Word Break这道题,和这题基本思路一致。代码: 1 // 18.7 Given a list of words, find out the...
分类:其他好文   时间:2014-04-29 14:30:17    阅读次数:493
《Cracking the Coding Interview》——第18章:难题——题目6
2014-04-29 02:27题目:找出10亿个数中最小的100万个数,假设内存可以装得下。解法1:内存可以装得下?可以用快速选择算法得到无序的结果。时间复杂度总体是O(n)级别,但是常系数不小。代码: 1 // 18.6 Find the smallest one million number....
分类:其他好文   时间:2014-04-29 14:27:13    阅读次数:665
《android 1: 创建一个安卓项目》
创建方式有两种:通过Eclipse创建在工具栏上选择New》android》android application project,或者在导航栏上选择file》new》project》android》android application project。在出现的窗口上填上与选择你的Applicat...
分类:移动开发   时间:2014-04-29 13:55:22    阅读次数:560
备忘-linux文件系统结构
用apache的时候总是要进入/var/www, 用久了开始好奇这些个目录都是派什么用处的,简单整理了一下/bin 存放二进制命令文件,这个目录下面不允许存在子目录/boot bootloader的静态文件,当然OS的文件也必须在这里/dev 设备文件,MAKEDEV命令可以创建设备/etc 特定主...
分类:系统相关   时间:2014-04-29 13:37:58    阅读次数:675
postgreSQL环境搭建
一、安装操作系统:windows7安装介质:postgresql-9.1.3-1-windows.exe二、psql控制台简单使用1打开psql2根据提示运行help3列出表命令三、安装uuid的扩展postgresql9.1.3默认没有安装uuid相关函数,虽然在目录C:\Program File...
分类:数据库   时间:2014-04-29 13:36:52    阅读次数:946
UIImage的两种加载方式
1.有缓存:读取后放入缓存中下次可直接读取,适用于图片较少且频繁使用。[UIImage imageNamed:@"文件名"];2.无缓存:用完就释放掉,参数传的是全路径,适用于图片较多的情况下。[UIImage alloc] initWithContentsOfFile:@"文件全路径"];
分类:其他好文   时间:2014-04-29 10:41:47    阅读次数:275
LeetCode2:Median of Two Sorted Arrays
题目: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should...
分类:其他好文   时间:2014-04-29 10:32:46    阅读次数:359
.net List<T>
List的几个方法List=>List.Find()List.FindAll()List.Contains() List.ForEach()List.ConvertAll() 1. 先比较Find()跟FindAll()。 这个两个函数都是 遍历List的集合,只是 区别在于FindAll()返回的...
分类:Web程序   时间:2014-04-29 10:32:46    阅读次数:443
ubuntu cscope
add the following text to .vimrc or .gvimrc: if has("cscope") set csprg=/usr/bin/cscope set csto=0 set cst set nocsverb " add any database in cur...
分类:其他好文   时间:2014-04-29 10:27:46    阅读次数:398
Shell编程 之 条件表达式
1#!/bin/bash -2#===============================================================================3#4#FILE: condition_expression_test.sh5#6# USAGE: ./con...
分类:其他好文   时间:2014-04-29 10:15:46    阅读次数:426
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!