Description
One day, Alice and Bob felt bored again, Bob knows Alice is a girl who loves math and is just learning something about matrix, so he decided to make a crazy problem for her.
Bob has...
分类:
其他好文 时间:
2015-03-31 12:52:29
阅读次数:
129
写在前面的话-----1:师兄给的豆瓣上关于leetcode上题目的分类。http://www.douban.com/note/330562764/?qq-pf-to=pcqq.c2c2:上周五老板给开会,针对毕设的事情问了我70分钟,其中不乏刁难的成分。但是转换角度,这样可以督促自己学术严谨。论文...
分类:
其他好文 时间:
2015-03-31 12:32:01
阅读次数:
125
翻转动画CustomFlipAnimeimport android.graphics.Camera;
import android.graphics.Matrix;
import android.view.View;
import android.view.animation.AccelerateInterpolator;
import android.view.animation.Animatio...
分类:
其他好文 时间:
2015-03-31 09:21:31
阅读次数:
150
You are given annxn2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?思路:我的思路,先沿对角线对称,再左右...
分类:
其他好文 时间:
2015-03-31 00:40:44
阅读次数:
185
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'54: Spiral Matrixhttps://leetcode.com/problems/spiral-matrix/Given a matrix of m x n eleme...
分类:
编程语言 时间:
2015-03-30 22:47:29
阅读次数:
222
先判断数组是否为空,为空返回false 不为空进入循环 获得矩阵的行数:rows=matrix.length 获得矩阵的列数:columns=matrix[0].length 从最右上角开始找,初始化row和column:row=0,column=columns-1; 所以while条件为 row=...
分类:
编程语言 时间:
2015-03-30 20:46:27
阅读次数:
153
problem:
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
Hide Tags
Array
题意:将一个矩阵顺时针旋...
分类:
其他好文 时间:
2015-03-30 18:51:18
阅读次数:
86
题目链接: http://acm.hdu.edu.cn/showproblem.php?pid=4965题目大意: 给你两个矩阵,A矩阵是n*k,B矩阵是k*n,(其中n 2 #include 3 #include 4 #include 5 #include 6 using namesp...
分类:
其他好文 时间:
2015-03-30 12:37:46
阅读次数:
107
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
[ 7, 8, 9 ]
]
You ...
分类:
其他好文 时间:
2015-03-29 23:49:53
阅读次数:
369
Spiral Matrix
Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.
For example,
Given the following matrix:
[
[ 1, 2, 3 ],
[ 4, 5, 6 ],
...
分类:
其他好文 时间:
2015-03-29 16:31:20
阅读次数:
132