mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
update
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"21K\", \"totalSubmission\": \"56.3K\", \"totalAcceptedRaw\": 21035, \"totalSubmissionRaw\": 56349, \"acRate\": \"37.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"21.1K\", \"totalSubmission\": \"56.4K\", \"totalAcceptedRaw\": 21053, \"totalSubmissionRaw\": 56381, \"acRate\": \"37.3%\"}",
|
||||
"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>."
|
||||
|
Reference in New Issue
Block a user