LeetCode 142 链表 Linked List Cycle IILeetCodeGiven a linked list, return the node where the cycle begins. If there is no cycle, return null.To represen... ...
分类:
其他好文 时间:
2020-03-03 10:50:36
阅读次数:
56
一、技术总结 1. 这一题是关于图的遍历,但是涉及Djikstra算法,在求最短路径的同时,还要把路径记录下来;同时增加了边权,也就会每个城市之间的花费; 2. 这里采用Djikstra算法+DFS遍历的方法 3. 第一步使用Djikstra算法求出最短路径,使用vector类型pre数组进行存储, ...
分类:
其他好文 时间:
2020-03-02 14:36:22
阅读次数:
57
高性能的索引策略 一、独立的列 如果查询中的列不是独立的,则MySQL就不会使用索引。“独立的列”是指索引列不能是表达式的一部分,也不能是函数的函数。 二、前缀索引和索引选择性 索引部分字符会降低索引的选择性,索引的选择性是指,不重复的索引值(也称为基数,cardinality)和数据表的记录总数( ...
分类:
数据库 时间:
2020-03-01 21:47:47
阅读次数:
88
The fastest way to create a robust, cross-platform compatible Node.js CLI (optionally typed with TypeScript) is by running npx oclif single mycli. Her ...
分类:
Web程序 时间:
2020-03-01 19:53:43
阅读次数:
76
索引的执行计划 1:分析查询性能(Analyze Query Performance)通常使用执行计划(解释计划,explain Plan)来查询的情况,如查询耗费的时间,是否基于索引查询等. 那么,通常,我们想知道,建立的索引是否有效,效果如何,都需要通过执行计划查看。 ...
分类:
数据库 时间:
2020-03-01 12:49:18
阅读次数:
80
University of OttawaSchool of Electrical Engineering and Computer ScienceCSI4142 Project 2019Crime Data MartThis document contains the requirements fo ...
分类:
其他好文 时间:
2020-02-25 20:07:57
阅读次数:
78
OpenMP Independent In-Class Coursework – The Game of LifeThe aim of this assignment is to write a parallel version of Conway’s Game of Life using Open ...
分类:
其他好文 时间:
2020-02-25 19:40:04
阅读次数:
56
PIL.Image转换成OpenCV格式 OpenCV转换成PIL.Image格式 判断图像数据是否是OpenCV格式 isinstance(img, np.ndarray) ...
分类:
编程语言 时间:
2020-02-25 09:14:54
阅读次数:
75
IntelliJIdea2019.3打开原项目报mysql版本报错: Error opening zip file or JAR manifest missing : /C:/Users/flycat/.IntelliJIdea2019.3/config/plugins/mysql-explain/ ...
分类:
数据库 时间:
2020-02-24 16:44:46
阅读次数:
100
在 select 语句之前增加 explain 关键字,MySQL 会在查询上设置一个标记,执行查询时,会返回执行计划的信息,而不是执行这条SQL(如果 from 中包含子查询,仍会执行该子查询,将结果放入临时表中。 1)explain extended:会在 explain 的基础上额外提供一些查 ...
分类:
数据库 时间:
2020-02-24 00:47:51
阅读次数:
84