这节主要是回顾了下线性代数的一些简单知识。## 矩阵与向量-------### 矩阵由$m\times n$个数$a _{ij}(i=1,2,...,m;j=1,2,...,n)$排成的$m$行$n$列的数表,称为$m$行$n$列的矩阵,简称$m\times n$矩阵,记作:$$\matrix{A}...
分类:
其他好文 时间:
2014-06-27 18:45:29
阅读次数:
161
You are given an n x n 2D matrix representing an image. Rotate the image by 90 degrees (clockwise).
分类:
其他好文 时间:
2014-06-27 12:02:32
阅读次数:
195
知识点Matrix:旋转对象Reset:重载createBitmap:创建位图//代码示例packagecom.example.examples_05_08;importandroid.content.Context;importandroid.graphics.Bitmap;importandro...
分类:
其他好文 时间:
2014-06-26 17:52:57
阅读次数:
157
Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
分类:
其他好文 时间:
2014-06-26 15:55:21
阅读次数:
200
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.时间复杂度O(n^3),最大全1子矩阵,利用直方图求解,可以参考对...
分类:
其他好文 时间:
2014-06-26 15:08:46
阅读次数:
164
ImageView
ScaleType属性, 该属性用以表示显示图片的方式
①matrix 根据一个3x3的矩阵对其中图片进行缩放
②fitXY 将图片非等比例缩放到大小与ImageView相同
③fitStart 缩放方式同FIT_CENTER,只是将图片显示在左方或上方,而不是居中
④fitCe...
分类:
移动开发 时间:
2014-06-26 07:42:43
阅读次数:
336
题目链接:bnu 34981 A Matrix
题目大意:假定有一序列,按照题目中给定的算法构造出一张二维表,现在题目给定一张二维表,要求求出序列,要求序列的倒置的字典序最大。
解题思路:构造,对于每一层来说,一定是递增的,根据算法可以得出;并且一个数被换到下一行,一定是因为有序列后面有小于自己的数,所以每一层从最后一个数开始匹配,找到上一层中比自己小的最大数字,假定是该数导致当前数被...
分类:
其他好文 时间:
2014-06-26 06:44:30
阅读次数:
294
题目链接:http://poj.org/problem?id=2155
题目大意:给出一个N*N的0矩阵,下面给出两种指令:1. 给出的第一个数据为‘C’,再给出四个整形数据,x1,y1,y1,y2,对以(x1,y1)(x2,y2)分别为左上角和右下角坐标的矩阵内的元素进行反转(0变1,1变0) 2. 给出的第一个数据为‘Q’,再给出两个数据,x,y,然后输出此时这个坐标上的元素...
分类:
其他好文 时间:
2014-06-24 22:29:35
阅读次数:
271
Bitmap bitmap=((BitmapDrawable)getResources().getDrawable(R.drawable.pull_down_color)).getBitmap();
Matrix matrix=new Matrix();
matrix.postRotate(180);
bitmap=Bitmap.create...
分类:
其他好文 时间:
2014-06-22 22:50:07
阅读次数:
206
题目要求:
Input a value n, then print out a N×N matrix.
Example 1: Input 2, then
1 2
4 3
Example2: Input 4, then
1 2 3 4
12 13 14 5
11 16 15 6
10 9 8 7
Please write a program to...
分类:
其他好文 时间:
2014-06-22 00:38:02
阅读次数:
409