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
索引的执行计划 1:分析查询性能(Analyze Query Performance)通常使用执行计划(解释计划,explain Plan)来查询的情况,如查询耗费的时间,是否基于索引查询等. 那么,通常,我们想知道,建立的索引是否有效,效果如何,都需要通过执行计划查看。 ...
分类:
数据库 时间:
2020-03-01 12:49:18
阅读次数:
80
PIL.Image转换成OpenCV格式 OpenCV转换成PIL.Image格式 判断图像数据是否是OpenCV格式 isinstance(img, np.ndarray) ...
分类:
编程语言 时间:
2020-02-25 09:14:54
阅读次数:
75
Given a string, we need to find the total number of its distinct substrings. 给你一个字符中,统计有多少个不同的子串InputT- number of test cases. T<=20;Each test case con ...
分类:
其他好文 时间:
2020-02-20 19:55:37
阅读次数:
59
原题链接在这里:https://leetcode.com/problems/two-city-scheduling/ 题目: There are 2N people a company is planning to interview. The cost of flying the i-th per ...
分类:
其他好文 时间:
2020-02-17 13:58:18
阅读次数:
70
This is xxxxx Because MES guy mistaken , the data was wrong and made system error then. After that I plan to set "autocommit off" in sqlserver as defa ...
分类:
数据库 时间:
2020-02-16 20:26:25
阅读次数:
111
2020 CDUT寒假集训第一场 [TOC] "A Vasya and Golden Ticket" Recently Vasya found a golden ticket — a sequence which consists of n digits a 1 a 2… a n . Vasya c ...
分类:
其他好文 时间:
2020-02-16 01:54:04
阅读次数:
123
爬楼梯。题意是给一个数字n代表楼梯的高度,你可以每次爬一步或者两步,求有多少种不同的爬法。例子, Example 1: Input: 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 step ...
分类:
其他好文 时间:
2020-02-13 09:56:32
阅读次数:
70
Example 1: Input: secret = "1807", guess = "7810" Output: "1A3B" Explanation: 1 bull and 3 cows. The bull is 8, the cows are 0, 1 and 7. Example 2: In ...
分类:
其他好文 时间:
2020-02-12 22:25:22
阅读次数:
81