mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-22 05:26:46 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>给你一个整数数组 <code>distance</code><em> </em>。</p>\n\n<p>从 <strong>X-Y</strong> 平面上的点 <code>(0,0)</code> 开始,先向北移动 <code>distance[0]</code> 米,然后向西移动 <code>distance[1]</code> 米,向南移动 <code>distance[2]</code> 米,向东移动 <code>distance[3]</code> 米,持续移动。也就是说,每次移动后你的方位会发生逆时针变化。</p>\n\n<p>判断你所经过的路径是否相交。如果相交,返回 <code>true</code> ;否则,返回 <code>false</code> 。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n<img alt=\"\" src=\"https://assets.leetcode.com/uploads/2021/03/14/selfcross1-plane.jpg\" style=\"width: 400px; height: 435px;\" />\n<pre>\n<strong>输入:</strong>distance = [2,1,1,2]\n<strong>输出:</strong>true\n</pre>\n\n<p><strong>示例 2:</strong></p>\n<img alt=\"\" src=\"https://assets.leetcode.com/uploads/2021/03/14/selfcross2-plane.jpg\" style=\"width: 400px; height: 435px;\" />\n<pre>\n<strong>输入:</strong>distance = [1,2,3,4]\n<strong>输出:</strong>false\n</pre>\n\n<p><strong>示例 3:</strong></p>\n<img alt=\"\" src=\"https://assets.leetcode.com/uploads/2021/03/14/selfcross3-plane.jpg\" style=\"width: 400px; height: 435px;\" />\n<pre>\n<strong>输入:</strong>distance = [1,1,1,1]\n<strong>输出:</strong>true</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= distance.length <= 10<sup>5</sup></code></li>\n\t<li><code>1 <= distance[i] <= 10<sup>5</sup></code></li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 148,
|
||||
"likes": 149,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"16.9K\", \"totalSubmission\": \"39.5K\", \"totalAcceptedRaw\": 16921, \"totalSubmissionRaw\": 39460, \"acRate\": \"42.9%\"}",
|
||||
"stats": "{\"totalAccepted\": \"17K\", \"totalSubmission\": \"39.7K\", \"totalAcceptedRaw\": 17032, \"totalSubmissionRaw\": 39735, \"acRate\": \"42.9%\"}",
|
||||
"hints": [],
|
||||
"solution": null,
|
||||
"status": null,
|
||||
|
Reference in New Issue
Block a user