AcWing 788. 逆序对的数量 #include <bits/stdc++.h> using namespace std; typedef long long LL; const int N=1e6+10; int q[N],tmp[N]; LL merge_sort(int l,int r) ...
Git图形化界面我用的还可以,但是命令就不太会了,索性和大家一起学习下Git命令的用法...一般来说,日常使用只要记住下图6个命令,就可以了。但是熟练使用,恐怕要记住60~100个命令。 fetch vs pull git fetch是将远程主机的最新内容拉到本地,用户在检查了以后决定是否合并到工作 ...
分类:
其他好文 时间:
2020-07-28 14:29:15
阅读次数:
188
Given two words word1 and word2, find the minimum number of steps required to make word1 and word2 the same, where in each step you can delete one cha ...
分类:
其他好文 时间:
2020-07-28 14:04:15
阅读次数:
77
一 Redis基础 1.1 Redis安装 #1 key-value的存储方式, value有很多数据类型:5大:string(字符串)、list(链表)、set(集合)、zset(sorted set --有序集合)和hash(哈希类型 #2 非关系型内存数据库 #3 与Memcached比较: ...
分类:
其他好文 时间:
2020-07-27 23:52:58
阅读次数:
78
原文出处:git pull命令的用法 git pull用法: git pull命令的作用是:取回远程主机某个分支的更新,再与本地的指定分支合并。 一句话总结git pull和git fetch的区别: git pull = git fetch + git merge git fetch不会进行合并执 ...
分类:
其他好文 时间:
2020-07-27 17:48:00
阅读次数:
112
Given the root of a binary tree and an integer distance. A pair of two different leaf nodes of a binary tree is said to be good if the length of the s ...
分类:
其他好文 时间:
2020-07-27 15:58:17
阅读次数:
93
1. Redis Redis 是一个开源(BSD许可)的,内存中的数据结构存储系统,它可以用作数据库、缓存和消息中间件。 它支持多种类型的数据结构,如 字符串(strings), 散列(hashes), 列表(lists), 集合(sets), 有序集合(sorted sets) 与范围查询, bi ...
分类:
系统相关 时间:
2020-07-27 15:55:04
阅读次数:
89
当fork了一个项目后,源项目又有了新的更新。此时需要将源项目的更新重新merge到自己fork的分支中来。 步骤参考如下连接 https://www.cnblogs.com/morethink/p/8907980.html ...
分类:
其他好文 时间:
2020-07-27 15:34:59
阅读次数:
63
package com.jeesite.modules.jiQiao.web;import com.google.common.collect.Lists;import java.util.ArrayList;import java.util.Collections;public class Dem ...
分类:
编程语言 时间:
2020-07-26 22:57:16
阅读次数:
89
题意 给你两个长度为 \(n\) 的串 \(a,b\) 求 \(a,b\) 两序列各任取一数相加形成的$n^2$个和的异或和 $1 \le n \le 2 \times 10^5$ $0 \le a_i \le 2^{28}$ 传送门 思路 按位考虑。对于第$i$位,令 \(x=2^i\),所有数对 ...
分类:
其他好文 时间:
2020-07-26 22:51:31
阅读次数:
66