1 //1、先转置 2 //2、第一列与最后一列交换、第二列与倒数第二列交换、... 3 class Solution 4 { 5 public: 6 void rotate(vector<vector<int>>& matrix) 7 { 8 int n = matrix.size(); 9 fo ...
分类:
其他好文 时间:
2020-03-18 18:24:44
阅读次数:
44
在一个 n * m 的二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。 示例: 现有矩阵 matrix 如下: [ [1, 4, 7, 11, 15], [2, 5, 8, 12, 19] ...
分类:
编程语言 时间:
2020-03-18 17:11:24
阅读次数:
53
1. Cointegrated VAR and Vector Error Correction Model (VECM) 1.1 传统VAR要求variables是stationary,实际上不同股票会被同样基本面驱动。若按常规,在cointegrated series的背景下use first d ...
分类:
其他好文 时间:
2020-03-18 10:04:24
阅读次数:
61
今天又开始啦 1.二维矩阵数组的基本格式: type arrayName [ ] [ ] = new type [ length1] [length2]; 例:int matrix [ ] [ ] = new int [4] [5]; 等价于: int matrix [ ] [ ] =new int ...
分类:
其他好文 时间:
2020-03-17 21:10:15
阅读次数:
54
人如果没有梦想,那和咸鱼有什么区别。不能征服自己,谈何征服世界。所以我们需要先正式自己,弄清楚“自己想做什么”、“自己能做什么”。我想做什么你想做什么只有你自己知道,它取决于你的方方面面。你走过的路、读过的书、看过的风景、爱过的人都在悄无声息地指引着你前进的方向。不过咱们简单粗暴一点,既然大家都想找 ...
分类:
其他好文 时间:
2020-03-17 08:24:58
阅读次数:
63
Given a matrix consists of 0 and 1, find the distance of the nearest 0 for each cell. The distance between two adjacent cells is 1. Example 1: Input: ...
分类:
其他好文 时间:
2020-03-16 23:35:41
阅读次数:
72
12. 数值的整数次方 题目描述 给定一个double类型的浮点数base和int类型的整数exponent。求base的exponent次方。 保证base和exponent不同时为0 分析: 0的任何次幂都是0, 非零整数的 0 次幂都是1, 整数的 负数次幂等于 整数的倒数的正数次幂 最后判断 ...
分类:
其他好文 时间:
2020-03-16 13:15:02
阅读次数:
53
Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order. A lucky number is an element of the matrix such that it ...
分类:
其他好文 时间:
2020-03-16 09:41:48
阅读次数:
34
配置ssh(仅主机host only模式) 1. 环境为VMware虚拟机 2. 虚拟网络适配器选择 “仅主机模式” 3. Windows用power shell或cmd查看本机ip地址 4. 将CentOS7的ip地址设置为静态并自定义ip地址 5. ssh连接成功! ...
分类:
其他好文 时间:
2020-03-15 22:07:44
阅读次数:
130
配置ssh(桥接模式) 1. 环境为VMware虚拟机 2. 虚拟网络适配器选择 “桥接模式” 3. Windows用power shell或cmd查看本机ip地址 4. 将CentOS7的ip地址设置为静态并自定义ip地址 5. ssh连接成功! ...
分类:
其他好文 时间:
2020-03-15 21:56:11
阅读次数:
111