//并查集-都要给fa赋初值!!// /*递归版路径压缩*/ const int maxn=2e5+9; int fa[maxn]; int find(int x) { return fa[x]==x?x:fa[x]=find(fa[x]); } void merge(int x,int y) { ...
分类:
其他好文 时间:
2020-05-16 12:36:03
阅读次数:
47
在Ubuntu执行命令时,会出现无法对目录 “/var/lib/apt/lists/ 加 锁”的错误。 使用sudo apt-get update命令时出现如下错误: E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource ...
分类:
其他好文 时间:
2020-05-16 10:40:06
阅读次数:
211
公用表表达式(Common Table Expression) 是SQL Server2005版本的引入的一个特性。CTE可以看组是一个临时的结果集,可以再接下来来的一个select,insert,update,delete,merge语句中多次引用。使用公用表达式CTE可以让语句更加清晰简练。 ...
分类:
其他好文 时间:
2020-05-16 01:02:13
阅读次数:
77
import os from utils.eval_utils import evaluate_on_cpu, evaluate_on_gpu, get_preds_gpu, voc_eval, parse_gt_rec from read_xml import readXMLAndReturnBo ...
分类:
其他好文 时间:
2020-05-15 00:05:59
阅读次数:
86
博客:https://www.cnblogs.com/chengxiao/p/6194356.html https://www.cnblogs.com/piperck/p/6030122.html python实现: def merge(left, right): """ params: left= ...
分类:
编程语言 时间:
2020-05-14 09:11:45
阅读次数:
64
#include "stdafx.h" #include <iostream> static void merge(int arrayOld[], int arrayNew[], int start, int mid, int end) { int i = start // seg1:[start, ...
分类:
其他好文 时间:
2020-05-14 01:51:42
阅读次数:
63
```pythonfrom collections import defaultdictfrom gensim import corporaimport jiebafrom gensim import similaritiesimport reclass Similarity: def docs(s... ...
分类:
其他好文 时间:
2020-05-14 01:24:08
阅读次数:
55
题意描述 对一个链表进行排序 测试用例 Input: 4 2 1 3 Output: 1 2 3 4 Input: 1 5 3 4 0 Output: 1 0 3 4 5 解题思路 一、思路一 1. 将链表进行拆分,最终向下拆分成一个节点为单位的链表 2. 比较节点的val大小,重新进行拼接 3. ...
分类:
其他好文 时间:
2020-05-13 23:44:10
阅读次数:
89
在本地环境中安装SVN window版本自行搜索图文教程。 linux版本(以我的 ubuntu 为例子) 我尝试直接敲SVN svn 报错 Command 'svn' not found, but can be installed with: apt install subversion Plea ...
分类:
其他好文 时间:
2020-05-13 16:56:06
阅读次数:
162
Description Given two sorted integer arrays A and B, merge B into A as one sorted array. You may assume that A has enough space (size that is greater ...
分类:
其他好文 时间:
2020-05-13 12:04:16
阅读次数:
68