摘要: 可以实现n*m矩阵的Z字形打印 bool flag1=false; void Zprint(int** arr,int ar,int ac,int br,int bc,bool flag); void printMatrix(int** arr, int n, int m) { if(arr == 阅读全文
posted @ 2020-04-27 00:05 肉松松松松 阅读(331) 评论(0) 推荐(0)
摘要: 给你一幅由 N × N 矩阵表示的图像,其中每个像素的大小为 4 字节。请你设计一种算法,将图像旋转 90 度。 不占用额外内存空间能否做到? 利用抽象的原则。将大问题分解成小问题。 class Solution { public: void rotate(vector<vector<int>>& 阅读全文
posted @ 2020-04-27 00:02 肉松松松松 阅读(126) 评论(0) 推荐(0)