yum 安装vim编辑器:rpm -qa|grep vimyum -y install vim* 编辑配置vim(选择性配置):vim /etc/vimrc 添加:set nu // 设置显示行号set showmode // 设置在命令行界面最下面显示当前模式等set ruler // 在右下角显 ...
分类:
系统相关 时间:
2020-02-11 11:35:28
阅读次数:
72
给出0~n-1的一个排列,可以整体移动,求逆序对最小值 把数字num[i]的加入,等价于树状数组的第n-num[i]位加1 因为num[i]是第 (n-1)-num[i]+1=n-num[i]大的数字,产生逆序对,只可能在其之前已经插入了数字,此时直接区间查询即可 1 #include <set> ...
分类:
编程语言 时间:
2020-02-10 09:33:02
阅读次数:
50
Problem : Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below. For example, gi ...
分类:
其他好文 时间:
2020-02-10 00:20:24
阅读次数:
81
"题目" 用hash,比较两个字符串数组的每个字符的hash值 ...
分类:
其他好文 时间:
2020-02-09 20:36:37
阅读次数:
64
题目如下: Given two equal-size strings s and t. In one step you can choose any character of t and replace it with another character. Return the minimum nu ...
分类:
其他好文 时间:
2020-02-09 18:39:10
阅读次数:
68
Flip game is played on a rectangular 4x4 field with two-sided pieces placed on each of its 16 squares. One side of each piece is white and the other o ...
分类:
其他好文 时间:
2020-02-08 22:02:58
阅读次数:
86
先来一道题,试试水平 上面的打印结果你猜对了吗? /D:/github/java_common/target/classes/ sun.misc.Launcher|AppClassLoader@18b4aac2 sun.misc.Launcher|ExtClassLoader@1a86f2f1 nu ...
分类:
其他好文 时间:
2020-02-08 17:15:49
阅读次数:
65
题目如下: Given an array arr. You can choose a set of integers and remove all the occurrences of these integers in the array. Return the minimum size of t ...
分类:
其他好文 时间:
2020-02-08 15:25:57
阅读次数:
69
[TOC] "Leetcode 76" 问题描述 例子 解决方案 ...
【Thymeleaf】使用学习 1、spring boot 整合 Thymeleaf 2、spring security 使用 3、标签使用 1、spring boot 整合 Thymeleaf <dependency> <groupId>org.springframework.boot</grou ...
分类:
其他好文 时间:
2020-02-08 11:49:59
阅读次数:
85