1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 07:21:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 15:21:05 +08:00
parent b84ae535b7
commit e730aa6794
2244 changed files with 8703 additions and 59499 deletions

View File

@@ -12,7 +12,7 @@
"isPaidOnly": false,
"difficulty": "Medium",
"likes": 574,
"dislikes": 64,
"dislikes": 65,
"isLiked": null,
"similarQuestions": "[{\"title\": \"Arithmetic Slices\", \"titleSlug\": \"arithmetic-slices\", \"difficulty\": \"Medium\", \"translatedTitle\": null}, {\"title\": \"Can Make Arithmetic Progression From Sequence\", \"titleSlug\": \"can-make-arithmetic-progression-from-sequence\", \"difficulty\": \"Easy\", \"translatedTitle\": null}]",
"exampleTestcases": "[4,6,5,9,3,7]\n[0,0,2]\n[2,3,5]\n[-12,-9,-3,-12,-6,15,20,-25,-20,-15,-10]\n[0,1,6,4,8,7]\n[4,4,9,7,9,10]",
@@ -143,7 +143,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"30.6K\", \"totalSubmission\": \"39K\", \"totalAcceptedRaw\": 30620, \"totalSubmissionRaw\": 39009, \"acRate\": \"78.5%\"}",
"stats": "{\"totalAccepted\": \"30.7K\", \"totalSubmission\": \"39.1K\", \"totalAcceptedRaw\": 30739, \"totalSubmissionRaw\": 39146, \"acRate\": \"78.5%\"}",
"hints": [
"To check if a given sequence is arithmetic, just check that the difference between every two consecutive elements is the same.",
"If and only if a set of numbers can make an arithmetic sequence, then its sorted version makes an arithmetic sequence. So to check a set of numbers, sort it, and check if that sequence is arithmetic.",