1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 23:41:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2023-12-09 19:57:46 +08:00
parent 9bc4722a45
commit 3770b44d1e
4792 changed files with 10889 additions and 10886 deletions

View File

@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"17K\", \"totalSubmission\": \"41K\", \"totalAcceptedRaw\": 16991, \"totalSubmissionRaw\": 40960, \"acRate\": \"41.5%\"}",
"stats": "{\"totalAccepted\": \"17K\", \"totalSubmission\": \"41K\", \"totalAcceptedRaw\": 17001, \"totalSubmissionRaw\": 40974, \"acRate\": \"41.5%\"}",
"hints": [
"The problem asks to change the array nums to make it sorted (i.e., all the 1s are on the left of 2s, and all the 2s are on the left of 3s.).",
"We can try all the possibilities to make nums indices range in [0, i) to 0 and [i, j) to 1 and [j, n) to 2. Note the ranges are left-close and right-open; each might be empty. Namely, 0 <= i <= j <= n.",