当前位置:网站首页>C language force buckles the rotating image of the 48th question.auxiliary array
C language force buckles the rotating image of the 48th question.auxiliary array
2022-07-31 00:22:00 【The two dogs will never be rotten】
Given a n × n two-dimensional matrix matrix
representing an image.Please rotate the image 90 degrees clockwise.
You must be in in-place rotates the image, which means you need to modify the input 2D matrix directly.Please do not use another matrix to rotate the image.
Example 1:
Input:matrix = [[1,2,3],[4,5,6],[7,8,9]]Output:[[7,4,1],[8,5,2],[9,6,3]]
Example 2:
Input:matrix = [[5,1,9,11],[2,4,8,10],[13,3,6,7],[15,14,12,16]]Output:[[15,13,2,5],[14,3,4,1],[12,6,8,9],[16,7,10,11]]
Tip:
n == matrix.length == matrix[i].length
1 <= n <= 20
-1000 <= matrix[i][j] <= 1000
Method ideas:
边栏推荐
猜你喜欢
unity2D横版游戏教程4-物品收集以及物理材质
Learn Scope from a Compilation Perspective!
firewalld
xss的绕过
Error ER_NOT_SUPPORTED_AUTH_MODE Client does not support authentication protocol requested by serv
2D转换模块&&媒体查询
Oracle一个诡异的临时表空间不足的问题
How to adjust Chinese in joiplay simulator
会议OA项目待开会议、所有会议功能
registers (assembly language)
随机推荐
ELK部署脚本---亲测可用
How to use joiplay emulator
[In-depth and easy-to-follow FPGA learning 14----------Test case design 2]
[Tang Yudi Deep Learning-3D Point Cloud Combat Series] Study Notes
DATA AI Summit 2022提及到的对 aggregate 的优化
joiplay模拟器如何调中文
h264和h265解码上的区别
MPI简谈
如何在WordPress网站上添加导航菜单
一款好用的接口测试工具——Postman
【唐宇迪 深度学习-3D点云实战系列】学习笔记
How to open the payment channel interface?
47. 【Pointers and Arrays】
The difference between h264 and h265 decoding
MySQL table design for message queue to store message data
MySQL笔记下
[Meng Xin problem solving] Delete the Nth node from the bottom of the linked list
Axure轮播图
GO GOPROXY代理设置
借助深度估计的点云场景重建