- 博客(5)
- 收藏
- 关注
转载 Git的 vim&vi 模式
git commit 不输入 -m 以及后面的内容会进入vim模式vi & vim 有两种工作模式:(1) 命令模式:接受、执行 vi & vim 操作命令的模式,打开文件后的默认模式;(2) 编辑模式:对打开的文件内容进行 增、删、改 操作的模式; 在编辑模式下按下 ESC 键,回退到命令模式。创建、打开文件:$ vi [filename](1)使用 vi 加 文件路径(或文件名...
2018-06-23 16:59:41 1614
原创 35. Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array.Exam...
2018-06-23 09:48:27 89
原创 27. Remove Element
Given an array nums and a value val, remove all instances of that value in-place and return the new length.Do not allocate extra space for another array, you must do this by modifying the input array ...
2018-06-23 09:25:18 81
转载 26. Remove Duplicates from Sorted Array
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this by modifying...
2018-06-22 20:44:23 106
转载 单例模式的七种写法
看了一篇文章说到单例模式一共有七种写法,但自己还不完全懂,就百度了一下。第一种饿汉模式public class Singleton { private static Singleton instance = new Singleton(); private Singleton(){ } public static Singleton getIn...
2018-04-30 10:05:36 122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人