qingcheng奕 |
|
||
2013年12月29日
摘要:
http://oj.leetcode.com/problems/rotate-image/将矩阵顺时针旋转90度。要求为原地算法。注意对输入的测试,矩阵为空,长度为1,为2时……#include #include using namespace std;class Solution {public: void rotate(vector > &matrix) { if(matrix.empty()) return; vector >matrixB; vector onePiece; int len = matr... 阅读全文
|
Copyright © 2024 qingcheng奕
Powered by .NET 8.0 on Kubernetes |