mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 23:41:41 +08:00
update
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"15.7K\", \"totalSubmission\": \"30.2K\", \"totalAcceptedRaw\": 15693, \"totalSubmissionRaw\": 30192, \"acRate\": \"52.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"15.7K\", \"totalSubmission\": \"30.2K\", \"totalAcceptedRaw\": 15701, \"totalSubmissionRaw\": 30212, \"acRate\": \"52.0%\"}",
|
||||
"hints": [
|
||||
"It can be proved that ALL “AB”s can be used in the optimal solution.\r\n(1) If the final string starts with 'A', we can put all unused “AB”s at the very beginning.\r\n(2) If the final string starts with 'B' (meaning) it starts with “BB”, we can put all unused “AB”s after the 2nd 'B'.",
|
||||
"Using “AB” doesn’t increase the number of “AA”s or “BB”s we can use.\r\nIf we put an “AB” after “BB”, then we still need to append “AA” as before, so it doesn’t change the state.",
|
||||
|
Reference in New Issue
Block a user