1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-06 07:51: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\": \"5.9K\", \"totalSubmission\": \"14.9K\", \"totalAcceptedRaw\": 5910, \"totalSubmissionRaw\": 14869, \"acRate\": \"39.7%\"}",
"stats": "{\"totalAccepted\": \"5.9K\", \"totalSubmission\": \"14.9K\", \"totalAcceptedRaw\": 5911, \"totalSubmissionRaw\": 14871, \"acRate\": \"39.7%\"}",
"hints": [
"Notice that if we consider that index <code>i</code> is the leftmost index of a beautiful substring, it has only one candidate <code>j</code>, such that <code>s[i:j]</code> is beautiful and shortest too.",
"We can iterate over all possibilities of leftmost index <code>i</code> take <code>s[i:j]</code> and compare with the shortest and the lexicographically smallest beautiful string we could get before index <code>i</code>."