元素或为1或为 1的行列式的值的估计 2018.04.12 设$n(n 2)$阶行列式$\det A$的所有元素或为$1$或$ 1$,求证:$\det A$的绝对值小于等于$(n 1)!(n 1)$. $solution:$ 数学归纳法. 考虑$n=3$的情形,第一列元素均为1或 1,故可对这一列上 ...
分类:
其他好文 时间:
2018-04-16 11:02:03
阅读次数:
202
给定一个 n x n 矩阵,其中每行和每列元素均按升序排序,找到矩阵中第k小的元素。请注意,它是排序后的第k小元素,而不是第k个元素。示例:matrix = [ [ 1, 5, 9], [10, 11, 13], [12, 13, 15]],k = 8,返回 13。说明:你可以假设 k 的值永远是有 ...
分类:
其他好文 时间:
2018-04-15 19:49:21
阅读次数:
208
一、numpy的简介 numpy是Python的一种开源的数值计算扩展库。这种工具可用来存储和处理大型矩阵,比Python自身的嵌套列表(nested list structure)结构要高效的多(该结构也可以用来表示矩阵(matrix))。 NumPy(Numeric Python)提供了许多高级 ...
分类:
其他好文 时间:
2018-04-15 18:46:55
阅读次数:
223
Given a non-empty 2D matrix matrix and an integer k, find the max sum of a rectangle in the matrix such that its sum is no larger than k.Example:Given ...
分类:
其他好文 时间:
2018-04-15 16:27:49
阅读次数:
188
Given an integer matrix, find the length of the longest increasing path.From each cell, you can either move to four directions: left, right, up or dow ...
分类:
其他好文 时间:
2018-04-14 18:04:56
阅读次数:
341
题目: In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original d ...
分类:
其他好文 时间:
2018-04-13 11:18:53
阅读次数:
192
题目 Given a m x n matrix, if an element is 0, set its entire row and column to 0. Do it in place. 解答 这题太水了,根本不是medium难度,一遍就AC了。 遍历matrix,拿两个数组分别记录需要变成0 ...
分类:
其他好文 时间:
2018-04-13 11:10:55
阅读次数:
168
1.开始 我想在荔枝派上驱动oled屏,但是在内核中写驱动对我来说肯定是非常麻烦的,所以我退而求其次,想在应用层中操作通用i2c接口来实现oled的驱动程序。 我买的OLED是中景园经典款,四针IIC接口oled。首先我参考了NanoPi的Matrix库,参考他的IIC应用层函数。我发现他多incl ...
分类:
系统相关 时间:
2018-04-12 15:29:56
阅读次数:
359
"题目链接" 最小生成树有两个性质: 1.在不同的MST中某种权值的边出现的次数是一定的。 2.在不同的MST中,连接完某种权值的边后,形成的连通块的状态是一样的。 $Solution1$ 由这两个性质,可以先求一个MST,再枚举每一组边(权值相同的看做一组边),对每组边DFS($O(2^{10}) ...
分类:
Web程序 时间:
2018-04-11 23:06:13
阅读次数:
294
1. Latex的两种公式模式 行间(inline)模式:即在正文中插入数学内容。行间公式用$ … $ 独立(display)模式:独立成行,可以有或没有编号。无编号用\ [ … \ ] 2.基本元素 希腊字母 标注 上下标 分数 运算符 求和(\sum),求积( \prod ),极限( \lim ...
分类:
其他好文 时间:
2018-04-11 21:39:22
阅读次数:
219