最小生成树 前言 emmm...因为Prim学的不是很好(完全不会编题),所以重点讲Kruskal算法,Prim部分可能会咕很久(炖鸽子警告) 最小生成树 知识搬运 给定一张边带权的无向图 \(G=(V,E),n=|V|,m=|E|\) ,由V中全部n个顶点和E中的 \(n-1\) 条边构成的无向连 ...
分类:
其他好文 时间:
2020-06-26 16:21:41
阅读次数:
68
0.结构 链接:https://pan.baidu.com/s/1FhoBoXgl1to1d65zv8eC1w 提取码:ivf3 1.pom.xml文件 <dependencies> <dependency> <groupId>org.springframework.boot</groupId> < ...
分类:
数据库 时间:
2020-06-26 15:02:16
阅读次数:
95
1、查看当前python pythonquit() whereis python which python 2、进入python官网,下载最新安装包 :https://www.python.org/ wget https://www.python.org/ftp/python/3.8.3/Pytho ...
分类:
编程语言 时间:
2020-06-26 14:36:04
阅读次数:
94
719. 找出第 k 小的距离对 思路: 首先采用了暴力求差值,11组数据超时,优化后利用map来求,结果在最后的两组超时。。然而还是要用二分写,二分差值,最小的为0,最大的是排完序后最后一个数的值减去第一个数的值,取mid,然后在原来数组里继续二分找有多少对差值cnt是小于等于mid的。 若对数c ...
分类:
其他好文 时间:
2020-06-26 14:32:06
阅读次数:
54
Example 1 源码: <?php require "../header.php" ; $ld = ldap_connect("localhost") or die("Could not connect to LDAP server"); ldap_set_option($ld, LDAP_OP ...
分类:
Web程序 时间:
2020-06-26 14:31:45
阅读次数:
64
准备工作 安装selenium 准备对应版本的geckdriver.exe文件。 http://chromedriver.storage.googleapis.com/index.html 默认都是使用chorme浏览器,版本对应链接如上 chromedriver配置环境变量 如果没有配置chrom ...
分类:
其他好文 时间:
2020-06-26 13:07:19
阅读次数:
50
三大等待 强制等待 time.sleep() # 使用time模块强制进行等待,单位s 隐式等待 driver.implicitly_wait(30) # 等待元素直到超时报异常 显式等待 # 第一步:创建一个等待计时器对象 wait = WebDriverWait(driver, 30, 0.5) ...
分类:
其他好文 时间:
2020-06-26 12:46:03
阅读次数:
60
xtrabackup 备份 MySQL 8.0.20 时报错: 200626 08:40:59 Connecting to MySQL server host: localhost, user: root, password: set, port: 3306, socket: /data/mysql ...
分类:
其他好文 时间:
2020-06-26 12:40:56
阅读次数:
88
一、虚拟串口驱动软件操作 (1)、下载虚拟串口驱动软件,安装完成后的图标,如下所示。 (2)、双击打开虚拟串口驱动软件图标,弹出以下界面。 (3)、点击添加端口,左边Virtual Serial Port Driver栏下Virtual port处出现添加两个虚拟串口:COM2与COM3。 (4)、 ...
分类:
其他好文 时间:
2020-06-26 12:26:20
阅读次数:
136
Rectangle Area (M) 题目 Find the total area covered by two rectilinear rectangles in a 2D plane. Each rectangle is defined by its bottom left corner and ...
分类:
其他好文 时间:
2020-06-26 11:14:20
阅读次数:
61