1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-21 13:06:47 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 16:56:27 +08:00
parent e730aa6794
commit ad15da05aa
2517 changed files with 7358 additions and 7332 deletions

View File

@@ -12,7 +12,7 @@
"translatedContent": "<p>给你一幅由 <code>N × N</code> 矩阵表示的图像,其中每个像素的大小为 4 字节。请你设计一种算法,将图像旋转 90 度。</p>\n\n<p>不占用额外内存空间能否做到?</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<pre>\n给定 <strong>matrix</strong> = \n[\n [1,2,3],\n [4,5,6],\n [7,8,9]\n],\n\n<strong>原地</strong>旋转输入矩阵,使其变为:\n[\n [7,4,1],\n [8,5,2],\n [9,6,3]\n]\n</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n给定 <strong>matrix</strong> =\n[\n [ 5, 1, 9,11],\n [ 2, 4, 8,10],\n [13, 3, 6, 7],\n [15,14,12,16]\n], \n\n<strong>原地</strong>旋转输入矩阵,使其变为:\n[\n [15,13, 2, 5],\n [14, 3, 4, 1],\n [12, 6, 8, 9],\n [16, 7,10,11]\n]\n</pre>\n\n<p><strong>注意</strong>:本题与主站 48 题相同<a href=\"https://leetcode-cn.com/problems/rotate-image/\">https://leetcode-cn.com/problems/rotate-image/</a></p>\n",
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 224,
"likes": 225,
"dislikes": 0,
"isLiked": null,
"similarQuestions": "[]",
@@ -131,7 +131,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"79.4K\", \"totalSubmission\": \"106.7K\", \"totalAcceptedRaw\": 79394, \"totalSubmissionRaw\": 106682, \"acRate\": \"74.4%\"}",
"stats": "{\"totalAccepted\": \"79.6K\", \"totalSubmission\": \"106.9K\", \"totalAcceptedRaw\": 79585, \"totalSubmissionRaw\": 106947, \"acRate\": \"74.4%\"}",
"hints": [
"尝试逐层思考。你能旋转某个特定图层吗?",
"旋转一个特定的层只意味着在4个数组中交换值。如果要求你在2个数组中交换值你能做到吗你能把它扩展到4个数组吗"