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

@@ -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” doesnt 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 doesnt change the state.",