码迷,mamicode.com
首页 >  
搜索关键字:vim find    ( 39587个结果
leetcode--Max Points on a Line
Givennpoints on a 2D plane, find the maximum number of points that lie on the same straight line.public class Solution { /** * This program is used t....
分类:其他好文   时间:2014-06-03 17:05:21    阅读次数:434
vim命令
一、插入模式i 从当前光标处进入插入模式o 在当前行之下新加一行,并进入插入模式Esc 退出插入模式!cmd 执行shell命令r fileName 导入fileName文件的内容二、移动光标h,j,k,l 上,下,左,右ctrl-f 上翻一页ctrl-b ...
分类:其他好文   时间:2014-06-02 16:27:28    阅读次数:217
【LeetCode】Best Time to Buy and Sell Stock II
Best Time to Buy and Sell Stock IISay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the ...
分类:其他好文   时间:2014-06-02 15:01:53    阅读次数:305
如何让vim编辑器永久显示行号
转载自:http://blog.csdn.net/lwj103862095/article/details/8122316在Linux环境下的编辑器有vi、vim、gedit等等。进入这些编辑器之后,为了方便我们需要编辑器显示出当前的行号,可偏偏编辑器默认是不会显示行号的。我们有二种办法可以解决: ...
分类:其他好文   时间:2014-06-02 11:09:01    阅读次数:201
LeetCode: Interleaving String [097]
【题目】 Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example, Given: s1 = "aabcc", s2 = "dbbca", When s3 = "aadbbcbcac", return true. When s3 = "aadbbbaccc", return false. 【题意】 给定字符串s1,s2,s3, 判断s3是不是s1和s2中的字交叉组合...
分类:其他好文   时间:2014-06-02 10:58:24    阅读次数:211
Vim的模式编辑器理解
看到很多资料说vim,感觉写的模式比较多,如果不好好理解,概念会容易搞错;当我们打开一个文件的时候,其实进入到命令模式(普通模式,默认模式);Vim的三种模式:命令模式(普通模式,默认模式,编辑模式)插入模式(输入模式)末行模式(提供的功能比命令模式来得更加强大)关键..
分类:其他好文   时间:2014-06-02 10:32:23    阅读次数:203
java 正则
1. matches() 匹配全部Pattern p = Pattern.compile("reg");Matcher m = p.matcher("String");System.out.println(m.matches());2:(matches 和find不要一起用,用reset()吐出来)...
分类:编程语言   时间:2014-06-02 10:19:32    阅读次数:390
Leetcode: Longest Palindromic Substring. java
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:编程语言   时间:2014-06-02 09:22:03    阅读次数:328
linux删除乱码文件
不知道大家有没有碰到这种文件,因为是乱码,文件无法删除,这时我们就可以考虑用下面的命令进行删除文件或目录 ls -i //列出文件节点 find ./ -inum XXX(节点号) -print -exec rm -rf {} \; //删除节点号文件 find . -inum XXXX(节点号) ...
分类:系统相关   时间:2014-06-02 06:37:25    阅读次数:370
-bash: warning: setlocale: LC_CTYPE: cannot change locale (EN_US.UTF-8)
-bash:warning:setlocale:LC_CTYPE:cannotchangelocale(EN_US.UTF-8) 把linux系统从中文设置英文字符集后发生以下报错 首先本系统字符集为中文UTF-8 [root@localhost~]#more/etc/sysconfig/i18n LANG="zh_CN.UTF-8" 修改为英文UTF-8 [root@localhost~]#vim/etc/sysconfig/i..
分类:其他好文   时间:2014-06-02 03:24:48    阅读次数:331
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!