1 #include 2 #include 3 void insert_sort(int a[], int length) 4 { 5 int key; 6 int j; 7 8 for (int i = 1; i key && j >= 0) 14 { 15 a[j + 1] = a[j]; 16... ...
分类:
编程语言 时间:
2019-06-30 18:41:35
阅读次数:
98
/** * This problem was asked by Google. In linear algebra, a Toeplitz matrix is one in which the elements on any given diagonal from top left to botto... ...
分类:
其他好文 时间:
2019-06-30 09:50:16
阅读次数:
80
Responsibility Assignment Matrix R-responsibility A-accountable C-consultant I-inform ...
分类:
其他好文 时间:
2019-06-30 09:19:01
阅读次数:
101
绝对值函数 $y=\left|x\right|= \left\{\begin{matrix} x, x \ge 0 &\\ -x, x < 0 & \end{matrix}\right.$ 性质: $\left|x\right|=x \Leftrightarrow x \ge 0,\left|x\r ...
分类:
其他好文 时间:
2019-06-29 00:31:49
阅读次数:
121
题目如下: Given a matrix, and a target, return the number of non-empty submatrices that sum to target. A submatrix x1, y1, x2, y2 is the set of all cells ...
分类:
其他好文 时间:
2019-06-28 11:52:19
阅读次数:
102
54:Spiral Matrix 螺旋矩阵 Given a matrix of m x n elements ( m rows, n columns), return all elements of the matrix in spiral order. 给定一个包含 m x n 个元素的矩阵( m ...
分类:
其他好文 时间:
2019-06-25 15:08:59
阅读次数:
69
(1)表面着色器 表面着色器是Unity自身的一种着色器代码类型。它需要的代码量很少,Unity在背后做了很多工作,但渲染的代价比较大。但Unity在背后仍旧把表面着色器转换成对应的顶点/片元着色器。表面着色器算是Unity对顶点/片元着色器更高一层的抽象。它存在的价值在于,Unity为我们处理了很 ...
分类:
编程语言 时间:
2019-06-24 00:25:23
阅读次数:
120
首先请先确认已经安装好了opencv3及以上版本。 #include <opencv2/opencv.hpp>#include <iostream>#include <string>using namespace cv;using namespace std;存储then int main(){// ...
分类:
编程语言 时间:
2019-06-22 19:44:04
阅读次数:
144
刷 June 21 2019 这个居然也没记过? 二维转一维,用的究极二分大法,但是如果因为超左右边界而找不到。 yes left, no right = 找不到的话L是停在最右边超过的地方,最后判断会out of boundary.. java public boolean searchMatri ...
分类:
其他好文 时间:
2019-06-22 10:23:54
阅读次数:
94
1. 简介 计算机图形学中的应用非常广泛的变换是一种称为仿射变换的特殊变换,在仿射变换中的基本变换包括平移、旋转、缩放、剪切这几种。本文以及接下来的几篇文章重点介绍一下关于旋转的变换,包括二维旋转变换、三维旋转变换以及它的一些表达方式(旋转矩阵、四元数、欧拉角等)。 2. 绕原点二维旋转 首先要明确 ...
分类:
其他好文 时间:
2019-06-18 14:25:29
阅读次数:
150