码迷,mamicode.com
首页 >  
搜索关键字:file which whereis find stat locate    ( 98661个结果
《Cracking the Coding Interview》——第17章:普通题——题目8
2014-04-28 23:35题目:最大子数组和问题。解法:O(n)解法。代码: 1 // 17.8 Find the consecutive subarray with maximum sum in an array. 2 // O(n) online algorithm. 3 #include...
分类:其他好文   时间:2014-04-29 16:35:28    阅读次数:429
openfire调试环境
导入工程:File->New->project:选择“Java project from existing ant buildfile”再从菜单windows->show view->ant 打开ant工具对话框打开ant编译文件build.xml当编译完成后,在源码根目录下会生成一个target目...
分类:其他好文   时间:2014-04-29 16:17:53    阅读次数:519
《Cracking the Coding Interview》——第17章:普通题——题目9
2014-04-28 23:52题目:设计算法,找出一本书中某个单词的出现频率。解法:数就行了。代码: 1 // 17.9 Given a book, find out the occurrences of any given words in it. 2 // Answer: 3 // 1....
分类:其他好文   时间:2014-04-29 16:00:32    阅读次数:388
《Cracking the Coding Interview》——第17章:普通题——题目12
2014-04-29 00:04题目:给定一个整数数组,找出所有加起来为指定和的数对。解法1:可以用哈希表保存数组元素,做到O(n)时间的算法。代码: 1 // 17.12 Given an array of integers and target value, find all pairs in ...
分类:其他好文   时间:2014-04-29 15:08:13    阅读次数:469
《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
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
迷上了代码!