41.思路:分别在列表中存放两个单词的索引,再用两次遍历求距离# 给定一个单词列表和两个单词 word1 和 word2,返回列表中这两个单词之间的最短距离。# 示例:# 假设 words = ["practice", "makes", "perfect", "coding", "makes"]# ...
分类:
其他好文 时间:
2019-12-01 13:44:09
阅读次数:
64
原题链接在这里:https://leetcode.com/problems/shortest-path-in-binary-matrix/ 题目: In an N by N square grid, each cell is either empty (0) or blocked (1). A cl ...
分类:
其他好文 时间:
2019-11-27 12:34:06
阅读次数:
82
Matrix CF 166E Tetrahedron dp方程设为 f[i] 最后在 D点,g[i] 表示最后不在D点 。最后 g[] 可以通过矩阵加速数列求得,数据可以强化,复杂度 $O(logn)$ CF 1252K Addition Robot 套路题。大家都知道要用线段树,可是不知道怎么去用 ...
分类:
其他好文 时间:
2019-11-27 12:16:47
阅读次数:
99
transform transform : none | <transform-function> [ <transform-function> ]* 也就是: transform: rotate | scale | skew | translate |matrix;注意:transform(变形) ...
分类:
其他好文 时间:
2019-11-27 11:54:49
阅读次数:
59
1. 图 一个图由一系列节点以及连接它们的边组成, 关联矩阵 (incidence matrix)则告诉我们 $n$ 个顶点是怎么被 $m$ 条边连接的。关联矩阵中的每个元素都是 0,1 或者 1,在消元过程中这也依然成立,所有的主元和乘数都是 $\pm1$。因此分解 $A=LU$ 也只包含 0,1 ...
分类:
其他好文 时间:
2019-11-26 22:57:27
阅读次数:
118
1. 具体题目 给定一个 n x n 矩阵,其中每行和每列元素均按升序排序,找到矩阵中第k小的元素。请注意,它是排序后的第k小元素,而不是第k个元素。 示例: matrix = [ [ 1, 5, 9], [10, 11, 13], [12, 13, 15] ],k = 8, 返回 13。 2. 思 ...
分类:
编程语言 时间:
2019-11-25 20:25:43
阅读次数:
86
Deferred可以添加多个回调函数,每个回调函数的结果作为下一个回调函数的参数 代码实例(可在pycharm中运行,摘自 https://twistedmatrix.com/documents/current/core/howto/defer.html) from twisted.internet ...
分类:
其他好文 时间:
2019-11-25 15:12:57
阅读次数:
72
题目如下: You are given a map of a server center, represented as a m * n integer matrix grid, where 1 means that on that cell there is a server and 0 mean ...
分类:
其他好文 时间:
2019-11-25 11:23:22
阅读次数:
56
/*******对读者说(哈哈如果有人看的话23333)哈哈大杰是华农的19级软件工程新手,才疏学浅但是秉着校科联的那句“主动才会有故事”还是大胆的做了一下建一个卑微博客的尝试,想法自己之后学到东西都记录一下自己学的同时或许(我说或许啊哈哈)能帮到博友,如果有啥错误的话还请各位大佬在下面留言怼我,指 ...
分类:
其他好文 时间:
2019-11-24 14:10:59
阅读次数:
59
综述类 名称 出版单位 行人重识别相关综述 (多篇) 基于视频的行人重识别 名称 出版单位 Video-Based Person Re-Identi?cation by Simultaneously Learning Intra-Video and Inter-Video Distance Metr ...
分类:
其他好文 时间:
2019-11-23 16:07:54
阅读次数:
41