- 【LeedCode刷题】轮转数组
tan77º
算法leetcodec语言数据结构
目录1、题目描述2、方法一3、方法二4、方法三(三步逆置法)1、题目描述给定一个整数数组nums,将数组中的元素向右轮转k个位置,其中k是非负数。输入:nums=[1,2,3,4,5,6,7],k=3输出:[5,6,7,1,2,3,4]解释:向右轮转1步:[7,1,2,3,4,5,6]向右轮转2步:[6,7,1,2,3,4,5]向右轮转3步:[5,6,7,1,2,3,4]2、方法一循环k次,每一轮
- 【LeedCode刷题】摩尔投票算法
tan77º
算法数据结构c语言leetcode
1、摩尔投票算法在一个数组中,有一个数的出现次数大于数组总个数的一半,要求找出这个数,这时候就可以用到摩尔投票算法。可以假设一个投票事件,1、2、3共三名候选者,一共7个人给他们投票,所投的票组成是[3,2,2,1,2,3,2],那这个时候候选者2的票数就多于一半,可以将2与1,3看成是对立的,因为候选者2的票数就多于一半,所以用2获得的总票数减去1和3获得的票数之和,一定是大于0的时间复杂度:O
- [leedcode]刷题有感--动态规划入门及思路模板
给我杯冰美式
动态规划算法
一、动态规划思考模板1、构造dp[]数组,想清楚dp[]数组的具体含义。2、确定本题目的递推公式3、初始化dp[]数组4、确定数组遍历顺序5、利用初始化后的dp数组结合递推公式推导dp数组,看是否符合题意要求二、题目示例1、斐波那契数列--一维动态规划斐波那契数列斐波那契数,通常用F(n)表示,形成的序列称为斐波那契数列。该数列由0和1开始,后面的每一项数字都是前面两项数字的和。也就是:F(0)=
- [leedcode]刷题有感--动态规划经典问题--01背包问题
给我杯冰美式
动态规划算法
一、01背包问题理论介绍有n件物品和一个最多能背重量为w的背包。第i件物品的重量是weight[i],得到的价值是value[i]。每件物品只能用一次,求解将哪些物品装入背包里物品价值总和最大。类似于这种类型的就是经典的01背包问题。对于01背包问题,我们通常使用动态规划来求解,当然也可以用回溯算法来求解,但是回溯算法的时间复杂度为指数级别,若题目中的测试数据过大,则可能会超时。二、题目示例示例一
- [Leedcode]刷题有感--对称二叉树 与 子二叉树
给我杯冰美式
算法数据结构
一、对称二叉树1、题目链接:leedcodeT101--对称二叉树给定一个二叉树,检查它是否是镜像对称的。2、题目思路:解决二叉树类问题,首先要明确自己要用哪一种遍历二叉树的方式,遍历二叉树的形式有三种:1、先序遍历--中左右,2、中序遍历--左中右,3、后序遍历--左右中。遍历二叉树的方法有两种:第一种是DFS--深度优先搜索,第二种是BFS--广度优先搜索。代码的实现方式也有两种:第一种为函数
- [leedcode]刷题有感 二叉树的深度、节点数量、与平衡二叉树
给我杯冰美式
算法
一、二叉树的最大深度1、二叉树的最大深度二叉树节点的深度:指从根节点到该节点的最长简单路径边的条数或者节点数(取决于深度从0开始还是从1开始)二叉树节点的高度:指从该节点到叶子节点的最长简单路径边的条数或者节点数(取决于高度从0开始还是从1开始)由此我们可以得出一个结论:根节点高度等于二叉树的最大深度,如果我们想求二叉树的某个节点的高度,我们求那个节点所在子树的最大深度即可,这个转化的思想在我们解
- C++类和对象入门(三)
顾得泉
C++从入门到精通c++开发语言
顾得泉:个人主页个人专栏:《Linux操作系统》《C++从入门到精通》《LeedCode刷题》键盘敲烂,年薪百万!前言在c++中,类型分为两类,一类是内置类型,另一类是自定义类型。1.内置类型:是指任何语言在设计初期定义的类型如:intlongdouble指针……2.自定义类型:基本数据类型赋别名或基于一些基本数据类型定义新的复杂数据类型如:StackQueue……自定义类型函数会自动调用默认函数
- 动态规划02 自由之路[C++]
梅头脑_
#动态规划动态规划算法c++笔记
图源:文心一言leedcode每日一题,提供了常规解法及其详细解释,供小伙伴们参考~第1版:在力扣新手村刷题的记录~方法一:递归调用,可以运行,但是不能通过较长的测试用例~方法二:动态规划,普遍适用的方法~编辑:梅头脑审核:文心一言题目:514.自由之路-力扣(LeetCode)目录514.自由之路题目方法一:哈希表+递归调用方法二:动态规划结语514.自由之路题目电子游戏“辐射4”中,任务“通向
- 算法篇:贪心算法
骇城迷影
算法贪心算法
声明:若未特殊标出,则默认是leedcode原题。3、2208.将数组和减半的最少操作次数:classSolution{public:inthalveArray(vector&nums){priority_queueheap;doublesum=0.0;for(autox:nums){heap.push(x);sum+=x;}sum/=2.0;intcount=0;while(sum>0){dou
- 腾讯精选练习(44/50) :二叉搜索树的最近公共祖先(LeedCode 235)
iiVax
C#
题目给定一个二叉搜索树,找到该树中两个指定节点的最近公共祖先。百度百科中最近公共祖先的定义为:“对于有根树T的两个结点p、q,最近公共祖先表示为一个结点x,满足x是p、q的祖先且x的深度尽可能大(一个节点也可以是它自己的祖先)。”例如,给定如下二叉搜索树:root=[6,2,8,0,4,7,9,null,null,3,5]示例1:输入:root=[6,2,8,0,4,7,9,null,null,3
- leedcode无重复字符的最长字串
weixin_45816431
算法c++
无重复字符的最长字串示例1:输入:s=“abcabcbb”输出:3解释:因为无重复字符的最长子串是“abc”,所以其长度为3。示例2:输入:s=“bbbbb”输出:1解释:因为无重复字符的最长子串是“b”,所以其长度为1。示例3:输入:s=“pwwkew”输出:3解释:因为无重复字符的最长子串是“wke”,所以其长度为3。请注意,你的答案必须是子串的长度,“pwke”是一个子序列,不是子串。提示:
- leedcode串联所有单词的子串
weixin_45816431
题解c#开发语言
串联所有单词的子串给定一个字符串s和一个字符串数组words。words中所有字符串长度相同。s中的串联子串是指一个包含words中所有字符串以任意顺序排列连接起来的子串。例如,如果words=[“ab”,“cd”,“ef”],那么“abcdef”,“abefcd”,“cdabef”,“cdefab”,“efabcd”,和“efcdab”都是串联子串。“acdbef”不是串联子串,因为他不是任何w
- leedcode刷题day2
Unicornlyy
leedcodeleetcode
题目:根据这道题我的思路是用python首先将第一个值赋给a,然后将下一个值赋值给b在这里写一个循环计算下一个值是否等于a,不等于就进入数组当等于a的时候输出数组长度,然后比较数组长度输出最长长度对应的元素不过显然这很慢。然后看了芦总的想法感觉还行不过我不知道用python怎么实现,因为他用的c++,然后是建立一个vector容器存放目前的最长子串,从第一个字符开始判断,如果字符不在子串中,则将字
- Leedcode刷题——滑动窗口
Nana 10
刷题算法数据结构c++
应用场景一般用于求一个序列中符合条件的最大(小)子序列如:①T209长度最小的子数组给定一个含有n个正整数的数组和一个正整数target。找出该数组中满足其总和大于等于target的长度最小的连续子数组[numsl,numsl+1,…,numsr-1,numsr],并返回其长度。如果不存在符合条件的子数组,返回0。示例1:输入:target=7,nums=[2,3,1,2,4,3]输出:2解释:子
- Amber-leedcode-java-代码随想录打卡第六天 | 242.有效的字母异位词 349. 两个数组的交集 202. 快乐数 1. 两数之和
amber66666!
算法leetcode数据结构哈希算法
:)前言短短续续的总算补上了,希望自己坚持下去。大家如果有疑问在评论区多多讨论呀~242.有效的字母异位词1.思路笔记:总体来说较为简单,其中数组的取值比较巧妙,需要记住2.代码classSolution{publicbooleanisAnagram(Strings,Stringt){int[]record=newint[26];for(inti=0;i类型转换为int类型的数组,你可以使用str
- Amber-Leedcode-Java-代码随想录打卡第八天|541. 反转字符串II● 卡码网:54.替换数字● 151.翻转字符串里的单词● 卡码网:55.右旋转字符串
amber66666!
leedcode算法数据结构leetcodejava
541.反转字符串II1.到底什么是stringbuilder?使用双指针的写法,不过是小范围的指向一头一尾,需要注意的是swap的书写,要转换为stringbuilder才可以实现转换。(来自代码随想录)不过话说,到底什么是stringbuilder?chat老师回答:StringBuilder是Java中的一个类,用于创建可修改的字符串。在Java中,字符串(String类型)是不可变的,这意
- Amber-Leedcode-Java-代码随想录打卡第十天 | ● 理论基础● 232.用栈实现队列● 225. 用队列实现栈
amber66666!
leedcode算法数据结构leetcodejava
●理论基础待更新●232.用栈实现队列待更新●225.用队列实现栈待更新总结:状态:未完结学习小时左右困难:待解决问题:今日收获:来源:代码随想录
- Amber-Leedcode-Java-代码随想录打卡第七天 | 454.四数相加II 383. 赎金信 15. 三数之和 18. 四数之和
amber66666!
java算法leetcode哈希算法
前言继续加油,嘻嘻454.四数相加1.初见没想法。。2.看完解题思路后只需要返回个数,不用返回具体的位置,有了这个思路后就好办了。而且使得AB相加,CD相加,最后找值,看其是否出现在C的hashmap中就好了,如果在的话,就相乘他们的value。一次就过啦!3.代码部分获取键,在遍历中十分有用Integerv:resultAB.keySet()修改value的值(其实还是不太明白什么时候应该写in
- leedcode刷题笔记day1
Unicornlyy
python学习leedcode笔记leetcode算法
题目大意:暴力解法两个for循环(也是我一看到题目想到的方法)枚举在数组中所有的不同的两个下标的组合逐个检查它们所对应的数的和是否等于target复杂度分析时间复杂度:O(n2),这里n为数组的长度空间复杂度:O(1),只用到常数个临时变量//publicclassSolution{//publicint[]twoSum(int[]nums,inttarget){//intlen=nums.len
- 【Swift】LeedCode 句子中的最多单词数
闽江小张
算法swift开发语言leetcode算法
由于各大平台的算法题的解法很少有Swift的版本,小编这边将会出个专辑为手撕LeetCode算法题。新手撕算法。请包含一个句子由一些单词以及它们之间的单个空格组成,句子的开头和结尾不会有多余空格。给你一个字符串数组sentences,其中sentences[i]表示单个句子。请你返回单个句子里单词的最多数目。示例1:输入:sentences=["aliceandbobloveleetcode","
- LeedCode最大子序和
zuki_75b3
题目给定一个整数数组nums,找到一个具有最大和的连续子数组(子数组最少包含一个元素),返回其最大和。示例:输入:[-2,1,-3,4,-1,2,1,-5,4]输出:6解释:连续子数组[4,-1,2,1]的和最大,为6。进阶:如果你已经实现复杂度为O(n)的解法,尝试使用更为精妙的分治法求解。来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/ma
- 算法篇:动态规划I
骇城迷影
算法动态规划
声明:若未特殊标出,则默认是leedcode原题。1、1137.第N个泰波那契数列:①状态表示:dp[i]表示:第i个泰波那契数的值。②状态转移方程:以i位置的状态,最近的一步,来划分问题:dp[i]=dp[i-1]+dp[i-2]+dp[i-3]③初始化:dp[0]=0dp[1]=dp[2]=1④填表顺序:从左往右。⑤返回值:dp[n]classSolution{public:inttribon
- LeedCode全排列Ⅱ——剪枝回溯
zuki_75b3
题目给定一个可包含重复数字的序列,返回所有不重复的全排列。示例:输入:[1,1,2]输出:[[1,1,2],[1,2,1],[2,1,1]]来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/permutations-ii著作权归领扣网络所有。商业转载请联系官方授权,非商业转载请注明出处。题解及思路重复情况判断枚举出所有结果集,可以发现,在①步骤中
- 两数之和 python_[LEEDCode][001][简单] – 两数之和(Two Sum)
weixin_39634884
两数之和python
啦啦啦,欢迎开启LeetCode刷题的旅程。这将是一段漫长而又艰辛的旅程,这是一条攀登珠穆朗玛的皑皑雪山路,这是通向OnePiece宝藏的伟大航路,这是无比残酷的修罗场。但请不要害怕,我们一起努力,必将一路披荆斩棘,将各位带到成功的彼岸,不过一定要牢记的是,不要下船,不要中途放弃,要坚持,要自我修炼,不断成长!那么,起航吧~这道TwoSum的题目作为LeetCode的开篇之题,乃是经典中的经典,正
- Linux系统---进程程序替换
顾得泉
Linux操作系统linux运维ubuntu服务器
顾得泉:个人主页个人专栏:《Linux操作系统》《C/C++》《LeedCode刷题》键盘敲烂,年薪百万!一、进程程序替换一、替换原理用fork创建子进程后执行的是和父进程相同的程序(但有可能执行不同的代码分支),子进程往往要调用一种exec函数以执行另一个程序。当进程调用一种exec函数时,该进程的用户空间代码和数据完全被新程序替换,从新程序的启动例程开始执行。调用exec并不创建新进程,所以调
- LeedCode刷题---滑动窗口问题(二)
顾得泉
LeetCode刷题算法数据结构leetcodec++
顾得泉:个人主页个人专栏:《Linux操作系统》《C/C++》《LeedCode刷题》键盘敲烂,年薪百万!一、将X减到0的最小操作数题目链接:将x减到0的最小操作数题目描述给你一个整数数组nums和一个整数x。每一次操作时,你应当移除数组nums最左边或最右边的元素,然后从x中减去该元素的值。请注意,需要修改数组以供接下来的操作使用。如果可以将x恰好减到0,返回最小操作数;否则,返回-1。示例1:
- Datawhale 12月组队学习 leetcode基础 day3 递归
struggle2003
学习leetcode算法
这是一个新的专栏,主要是一些算法的基础,对想要刷leedcode的同学会有一定的帮助,如果在算法学习中遇到了问题,也可以直接评论或者私信博主,一定倾囊相助进入正题,今天咱们要说的是递归,递归是是很多初学者比较头疼的问题啊,在这篇博客里,我会先阐述一下递归的定义,然后再举几个例子来证明一下,最后咱们练个小题强化一下。递归算法递归算法简介递归算法解题思路例题例题1练习递归算法简介首先说一下递归的含义,
- Datawhale 12月组队学习 leetcode基础 day1 枚举
struggle2003
leetcode基础学习leetcode算法
这是一个新的专栏,主要是一些算法的基础,对想要刷leedcode的同学会有一定的帮助,如果在算法学习中遇到了问题,也可以直接评论或者私信博主,一定倾囊相助进入正题,今天咱们要说的枚举算法,这是个很简单的算法哈,先说一下原理然后就看几道题练一下,算是很好学的算法了枚举算法枚举算法简介枚举算法解题思路例题例题1例题2练习枚举算法简介这里简单的和大家分享一下什么是枚举,简单来说,就是一一列举可能出现的情
- Linux系统---图书管理中的同步问题
顾得泉
Linux操作系统linux运维ubuntuvim算法
顾得泉:个人主页个人专栏:《Linux操作系统》《C/C++》《LeedCode刷题》键盘敲烂,年薪百万!一、问题描述(1)图书馆阅览室最多能够容纳N(N=5)名学生,若有更多学生想进入阅览室,必须等到阅览室中有同学退出之后才能进入。(2)阅览室有一名管理员。早到的同学必须等管理员开门之后才能进入,管理员必须等到所有同学都退出之后才能关门。请你用信号量实现上述问题。二、问题分析(1)将在“阅览室读
- LeedCode刷题---双指针问题
顾得泉
leetcodec++算法数据结构
顾得泉:个人主页个人专栏:《Linux操作系统》《C/C++》《LeedCode刷题》键盘敲烂,年薪百万!双指针简介常见的双指针有两种形式,一种是对撞指针,一种是左右指针。对撞指针:一般用于顺序结构中,也称左右指针。对撞指针从两端向中间移动。一个指针从最左端开始,另一个从最右端开始。然后逐渐往中间逼近。对撞指针的终止条件一般是两个指针相遇或者错开(也可能在循环内部找到拿果直接跳出循环),也就是:l
- java责任链模式
3213213333332132
java责任链模式村民告县长
责任链模式,通常就是一个请求从最低级开始往上层层的请求,当在某一层满足条件时,请求将被处理,当请求到最高层仍未满足时,则请求不会被处理。
就是一个请求在这个链条的责任范围内,会被相应的处理,如果超出链条的责任范围外,请求不会被相应的处理。
下面代码模拟这样的效果:
创建一个政府抽象类,方便所有的具体政府部门继承它。
package 责任链模式;
/**
*
- linux、mysql、nginx、tomcat 性能参数优化
ronin47
一、linux 系统内核参数
/etc/sysctl.conf文件常用参数 net.core.netdev_max_backlog = 32768 #允许送到队列的数据包的最大数目
net.core.rmem_max = 8388608 #SOCKET读缓存区大小
net.core.wmem_max = 8388608 #SOCKET写缓存区大
- php命令行界面
dcj3sjt126com
PHPcli
常用选项
php -v
php -i PHP安装的有关信息
php -h 访问帮助文件
php -m 列出编译到当前PHP安装的所有模块
执行一段代码
php -r 'echo "hello, world!";'
php -r 'echo "Hello, World!\n";'
php -r '$ts = filemtime("
- Filter&Session
171815164
session
Filter
HttpServletRequest requ = (HttpServletRequest) req;
HttpSession session = requ.getSession();
if (session.getAttribute("admin") == null) {
PrintWriter out = res.ge
- 连接池与Spring,Hibernate结合
g21121
Hibernate
前几篇关于Java连接池的介绍都是基于Java应用的,而我们常用的场景是与Spring和ORM框架结合,下面就利用实例学习一下这方面的配置。
1.下载相关内容: &nb
- [简单]mybatis判断数字类型
53873039oycg
mybatis
昨天同事反馈mybatis保存不了int类型的属性,一直报错,错误信息如下:
Caused by: java.lang.NumberFormatException: For input string: "null"
at sun.mis
- 项目启动时或者启动后ava.lang.OutOfMemoryError: PermGen space
程序员是怎么炼成的
eclipsejvmtomcatcatalina.sheclipse.ini
在启动比较大的项目时,因为存在大量的jsp页面,所以在编译的时候会生成很多的.class文件,.class文件是都会被加载到jvm的方法区中,如果要加载的class文件很多,就会出现方法区溢出异常 java.lang.OutOfMemoryError: PermGen space.
解决办法是点击eclipse里的tomcat,在
- 我的crm小结
aijuans
crm
各种原因吧,crm今天才完了。主要是接触了几个新技术:
Struts2、poi、ibatis这几个都是以前的项目中用过的。
Jsf、tapestry是这次新接触的,都是界面层的框架,用起来也不难。思路和struts不太一样,传说比较简单方便。不过个人感觉还是struts用着顺手啊,当然springmvc也很顺手,不知道是因为习惯还是什么。jsf和tapestry应用的时候需要知道他们的标签、主
- spring里配置使用hibernate的二级缓存几步
antonyup_2006
javaspringHibernatexmlcache
.在spring的配置文件中 applicationContent.xml,hibernate部分加入
xml 代码
<prop key="hibernate.cache.provider_class">org.hibernate.cache.EhCacheProvider</prop>
<prop key="hi
- JAVA基础面试题
百合不是茶
抽象实现接口String类接口继承抽象类继承实体类自定义异常
/* * 栈(stack):主要保存基本类型(或者叫内置类型)(char、byte、short、 *int、long、 float、double、boolean)和对象的引用,数据可以共享,速度仅次于 * 寄存器(register),快于堆。堆(heap):用于存储对象。 */ &
- 让sqlmap文件 "继承" 起来
bijian1013
javaibatissqlmap
多个项目中使用ibatis , 和数据库表对应的 sqlmap文件(增删改查等基本语句),dao, pojo 都是由工具自动生成的, 现在将这些自动生成的文件放在一个单独的工程中,其它项目工程中通过jar包来引用 ,并通过"继承"为基础的sqlmap文件,dao,pojo 添加新的方法来满足项
- 精通Oracle10编程SQL(13)开发触发器
bijian1013
oracle数据库plsql
/*
*开发触发器
*/
--得到日期是周几
select to_char(sysdate+4,'DY','nls_date_language=AMERICAN') from dual;
select to_char(sysdate,'DY','nls_date_language=AMERICAN') from dual;
--建立BEFORE语句触发器
CREATE O
- 【EhCache三】EhCache查询
bit1129
ehcache
本文介绍EhCache查询缓存中数据,EhCache提供了类似Hibernate的查询API,可以按照给定的条件进行查询。
要对EhCache进行查询,需要在ehcache.xml中设定要查询的属性
数据准备
@Before
public void setUp() {
//加载EhCache配置文件
Inpu
- CXF框架入门实例
白糖_
springWeb框架webserviceservlet
CXF是apache旗下的开源框架,由Celtix + XFire这两门经典的框架合成,是一套非常流行的web service框架。
它提供了JAX-WS的全面支持,并且可以根据实际项目的需要,采用代码优先(Code First)或者 WSDL 优先(WSDL First)来轻松地实现 Web Services 的发布和使用,同时它能与spring进行完美结合。
在apache cxf官网提供
- angular.equals
boyitech
AngularJSAngularJS APIAnguarJS 中文APIangular.equals
angular.equals
描述:
比较两个值或者两个对象是不是 相等。还支持值的类型,正则表达式和数组的比较。 两个值或对象被认为是 相等的前提条件是以下的情况至少能满足一项:
两个值或者对象能通过=== (恒等) 的比较
两个值或者对象是同样类型,并且他们的属性都能通过angular
- java-腾讯暑期实习生-输入一个数组A[1,2,...n],求输入B,使得数组B中的第i个数字B[i]=A[0]*A[1]*...*A[i-1]*A[i+1]
bylijinnan
java
这道题的具体思路请参看 何海涛的微博:http://weibo.com/zhedahht
import java.math.BigInteger;
import java.util.Arrays;
public class CreateBFromATencent {
/**
* 题目:输入一个数组A[1,2,...n],求输入B,使得数组B中的第i个数字B[i]=A
- FastDFS 的安装和配置 修订版
Chen.H
linuxfastDFS分布式文件系统
FastDFS Home:http://code.google.com/p/fastdfs/
1. 安装
http://code.google.com/p/fastdfs/wiki/Setup http://hi.baidu.com/leolance/blog/item/3c273327978ae55f93580703.html
安装libevent (对libevent的版本要求为1.4.
- [强人工智能]拓扑扫描与自适应构造器
comsci
人工智能
当我们面对一个有限拓扑网络的时候,在对已知的拓扑结构进行分析之后,发现在连通点之后,还存在若干个子网络,且这些网络的结构是未知的,数据库中并未存在这些网络的拓扑结构数据....这个时候,我们该怎么办呢?
那么,现在我们必须设计新的模块和代码包来处理上面的问题
- oracle merge into的用法
daizj
oraclesqlmerget into
Oracle中merge into的使用
http://blog.csdn.net/yuzhic/article/details/1896878
http://blog.csdn.net/macle2010/article/details/5980965
该命令使用一条语句从一个或者多个数据源中完成对表的更新和插入数据. ORACLE 9i 中,使用此命令必须同时指定UPDATE 和INSE
- 不适合使用Hadoop的场景
datamachine
hadoop
转自:http://dev.yesky.com/296/35381296.shtml。
Hadoop通常被认定是能够帮助你解决所有问题的唯一方案。 当人们提到“大数据”或是“数据分析”等相关问题的时候,会听到脱口而出的回答:Hadoop! 实际上Hadoop被设计和建造出来,是用来解决一系列特定问题的。对某些问题来说,Hadoop至多算是一个不好的选择,对另一些问题来说,选择Ha
- YII findAll的用法
dcj3sjt126com
yii
看文档比较糊涂,其实挺简单的:
$predictions=Prediction::model()->findAll("uid=:uid",array(":uid"=>10));
第一个参数是选择条件:”uid=10″。其中:uid是一个占位符,在后面的array(“:uid”=>10)对齐进行了赋值;
更完善的查询需要
- vim 常用 NERDTree 快捷键
dcj3sjt126com
vim
下面给大家整理了一些vim NERDTree的常用快捷键了,这里几乎包括了所有的快捷键了,希望文章对各位会带来帮助。
切换工作台和目录
ctrl + w + h 光标 focus 左侧树形目录ctrl + w + l 光标 focus 右侧文件显示窗口ctrl + w + w 光标自动在左右侧窗口切换ctrl + w + r 移动当前窗口的布局位置
o 在已有窗口中打开文件、目录或书签,并跳
- Java把目录下的文件打印出来
蕃薯耀
列出目录下的文件文件夹下面的文件目录下的文件
Java把目录下的文件打印出来
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
蕃薯耀 2015年7月11日 11:02:
- linux远程桌面----VNCServer与rdesktop
hanqunfeng
Desktop
windows远程桌面到linux,需要在linux上安装vncserver,并开启vnc服务,同时需要在windows下使用vnc-viewer访问Linux。vncserver同时支持linux远程桌面到linux。
linux远程桌面到windows,需要在linux上安装rdesktop,同时开启windows的远程桌面访问。
下面分别介绍,以windo
- guava中的join和split功能
jackyrong
java
guava库中,包含了很好的join和split的功能,例子如下:
1) 将LIST转换为使用字符串连接的字符串
List<String> names = Lists.newArrayList("John", "Jane", "Adam", "Tom");
- Web开发技术十年发展历程
lampcy
androidWeb浏览器html5
回顾web开发技术这十年发展历程:
Ajax
03年的时候我上六年级,那时候网吧刚在小县城的角落萌生。传奇,大话西游第一代网游一时风靡。我抱着试一试的心态给了网吧老板两块钱想申请个号玩玩,然后接下来的一个小时我一直在,注,册,账,号。
彼时网吧用的512k的带宽,注册的时候,填了一堆信息,提交,页面跳转,嘣,”您填写的信息有误,请重填”。然后跳转回注册页面,以此循环。我现在时常想,如果当时a
- 架构师之mima-----------------mina的非NIO控制IOBuffer(说得比较好)
nannan408
buffer
1.前言。
如题。
2.代码。
IoService
IoService是一个接口,有两种实现:IoAcceptor和IoConnector;其中IoAcceptor是针对Server端的实现,IoConnector是针对Client端的实现;IoService的职责包括:
1、监听器管理
2、IoHandler
3、IoSession
- ORA-00054:resource busy and acquire with NOWAIT specified
Everyday都不同
oraclesessionLock
[Oracle]
今天对一个数据量很大的表进行操作时,出现如题所示的异常。此时表明数据库的事务处于“忙”的状态,而且被lock了,所以必须先关闭占用的session。
step1,查看被lock的session:
select t2.username, t2.sid, t2.serial#, t2.logon_time
from v$locked_obj
- javascript学习笔记
tntxia
JavaScript
javascript里面有6种基本类型的值:number、string、boolean、object、function和undefined。number:就是数字值,包括整数、小数、NaN、正负无穷。string:字符串类型、单双引号引起来的内容。boolean:true、false object:表示所有的javascript对象,不用多说function:我们熟悉的方法,也就是
- Java enum的用法详解
xieke90
enum枚举
Java中枚举实现的分析:
示例:
public static enum SEVERITY{
INFO,WARN,ERROR
}
enum很像特殊的class,实际上enum声明定义的类型就是一个类。 而这些类都是类库中Enum类的子类 (java.l