码迷,mamicode.com
首页 >  
搜索关键字:vim find    ( 39587个结果
LeetCode-003 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 for "abcabcbb" is "abc", which the length is 3. For "bbbbb" the longest substring is "b", with the len...
分类:其他好文   时间:2014-05-15 14:40:14    阅读次数:320
[LeetCode]Single Number
Given an array of integers, every element appears twice except for one. Find that single one....
分类:其他好文   时间:2014-05-15 07:20:39    阅读次数:264
leetCode-002 Median of Two Sorted Arrays
leetCode-002 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 be O(log (m+n)). 【题意】 有两个有序的数组,找出这两数组整合后的中位数,要求时间复杂度O(nlogn)...
分类:其他好文   时间:2014-05-15 04:42:05    阅读次数:274
LeetCode-001 Two Sum
LeetCode-001 Two Sum Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2...
分类:其他好文   时间:2014-05-15 04:34:50    阅读次数:293
【python标准库学习】re模块
1.什么是re         正则表达式一门相对通用的语言,在python中也有对正则表达式的支持,那就是的内置re模块。正则表达式就是一系列的规则去匹配字符串然后进行相应的操作,这些规则网上一搜一大片,而re则是运用正则表达式来提供一系列的功能强大的接口让我们来调用。通常我们在对日志文件进行操作的时候会对正则表达式运用的比较多来得到我们希望得到的数据。 2.python中的转义符...
分类:编程语言   时间:2014-05-15 03:58:49    阅读次数:465
LeetCode-005 Longest Palindromic Substrin
【题目】 Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindromic substring. 【题意】 题意是找出字符串S中最长回文子串,S最长为1000,保证有唯一解 【思路】 原字符串用特殊字符#间隔,如下所示: #a...
分类:其他好文   时间:2014-05-15 03:31:25    阅读次数:299
20140509-svn安装 post-commit(钩子)部署
1说明SVN采用post-commit方式(钩子文件)实现版本自动发布。2实现方法2.1SVN部署安装:#yuminstallhttpdhttpd-develmysql-serverphpphp-develphp-mysqlsubversionmod_dav_svnmod_auth_mysql-y修改配置:#vim/etc/httpd/conf/httpd.conf 添加一行: LoadModulephp5_modulemodul..
分类:其他好文   时间:2014-05-14 16:19:46    阅读次数:328
60行R++代码实现Lisp解释器
还没有处理lambda、上下文等,有待完善。 main { for putsl(eval(getsl)) } rstr eval(rstr s) { s=tokenize(s) v=s.split(' ') if v.get(0)!='(' return v.get(0) next=find(v.sub(2))+2 switch v.get(1) case '+' r...
分类:其他好文   时间:2014-05-14 15:32:34    阅读次数:323
vim操作 随笔
一、移动光标1、左移h、右移l、下移j、上移k2、向下翻页ctrl + f,向上翻页ctrl + b3、向下翻半页ctrl + d,向上翻半页ctrl + u4、移动到行尾$,移动到行首0(数字),移动到行首第一个字符处^5、移动光标到下一个句子 ),移动光标到上一个句子(6、移动到段首{,移动到段...
分类:其他好文   时间:2014-05-14 13:28:24    阅读次数:319
ue使用
快捷键CTRL+V:输入代码提示自动补全编辑器Ultraedit快捷键 说到编辑器的快捷键,VIM是无与伦比的。要反对,也得是带脚踏板的EmaCS。UE还是有差距的,很大差距。注意:VIM是开源、免费的,而UE则需要注册。UE是Windows下最好的编辑器——如果没有GVIM和Emacs的话。而V....
分类:其他好文   时间:2014-05-14 11:49:40    阅读次数:408
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!