https://leetcode-cn.com/problems/longest-increasing-path-in-a-matrix/ 这个题是看到被人的面经来刷的。 自己想的dp实现出来是错的,思路完全乱掉了。先贴代码吧。 class Solution { public int longest ...
分类:
其他好文 时间:
2020-07-26 15:03:03
阅读次数:
349
dd命令用于按照指定大小和个数的数据块来复制文件或转换文件,格式为“dd [参数]”。
dd命令是一个比较重要而且比较有特色的一个命令,它能够让用户按照指定大小和个数的数据块来复制文件的内容。当然如果愿意的话,还可以在复制过程中转换其中的数据。Linux系统中有一个名为/dev/zero的设备文件,每次在解释它时都充满哲学理论的色彩。因为这个文件不会占用系统存储空间,但却可以提供无穷无尽的数据,因此可以使用它作为dd命令的输入文件,来生成一个指定大小的文件。Linux系统中可以直接使用dd命令来压制出光盘镜像文件,将它变成一个可立即使用的iso镜像:
[root@linuxprobe ~]# dd if=/dev/cdrom of=RHEL-server-8.0-x86_64-LinuxProbe.Com.iso
7311360+0 records in
7311360+0 records out
3743416320 bytes (3.7 GB) copied, 370.758 s, 10.1 MB/s
分类:
系统相关 时间:
2020-07-26 11:21:59
阅读次数:
103
注意,default语句不是必须放在case语句的结尾处出现。 例子程序: int i=9; switch (i) { default: System.out.println("default"); case 0: System.out.println("zero"); break; case 1: ...
分类:
其他好文 时间:
2020-07-25 23:38:15
阅读次数:
136
一维差分:(博客图片来源:here) 设有一个序列\(a_{1},a_{2},a_{3},\cdots ,a_{4}\) 我们定义一个新的序列: \[\left\{\begin{matrix}b_{i}=a_{i} & i=1\\b_{i}=a_{i}-a_{i-1}& i\neq 1\end{ma ...
分类:
其他好文 时间:
2020-07-23 23:00:31
阅读次数:
91
w里放的是z 这个z是平行于视锥near far平面的 那个深度相同的z 不是到camera的距离相同 在viewspace也是同样如此 从数学的角度讲 这个变换proj是线性变换 就是可逆的 平行性不变的 为什么透视投影明明发生形变了 是个ax+b的仿射变换 还能用线性的matrix乘来表示 因为 ...
分类:
其他好文 时间:
2020-07-23 22:18:28
阅读次数:
77
css3属性中关于制作动画的三个属性:Transform,Transition,Animation。 1、transform:描述了元素的静态样式,本身不会呈现动画效果,可以对元素进行 旋转rotate、扭曲skew、缩放scale和移动translate以及矩阵变形matrix。 div{ tra ...
分类:
Web程序 时间:
2020-07-22 23:36:58
阅读次数:
115
#include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn=105; const int mod=1e9+7; int n; struct matrix { ll a[maxn][maxn]; m ...
分类:
其他好文 时间:
2020-07-18 22:14:26
阅读次数:
75
You are given three positive (i.e. strictly greater than zero) integers xx , yy and zz . Your task is to find positive integers aa , bb and cc such th ...
分类:
其他好文 时间:
2020-07-18 19:56:20
阅读次数:
82
1.主题插件 经多个主题使用,最终使用Solarized Dark,还是有部分改动,在setting文件中自定义部分颜色, "[Solarized Dark]": { "functions": "#d8ca04dc", "types": "#08c48cfd", "comments": "#5ed1 ...
分类:
其他好文 时间:
2020-07-16 21:23:26
阅读次数:
56
problem 1380. Lucky Numbers in a Matrix 在矩阵中,如果一个数既是它所在行的最小值,又是它所在列的最大值,则称这个数为幸运数。找到矩阵中所有的幸运数。 Constraints All elements in the matrix are distinct. so ...
分类:
其他好文 时间:
2020-07-16 00:15:33
阅读次数:
72