1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 07:21:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-05-02 23:44:12 +08:00
parent 7ea03594b3
commit 2a71c78585
4790 changed files with 11696 additions and 10944 deletions

View File

@@ -11,8 +11,8 @@
"translatedContent": null,
"isPaidOnly": false,
"difficulty": "Hard",
"likes": 275,
"dislikes": 101,
"likes": 289,
"dislikes": 103,
"isLiked": null,
"similarQuestions": "[]",
"exampleTestcases": "2\n\"aa\"\n\"da\"\n\"b\"\n8\n\"leetcode\"\n\"leetgoes\"\n\"leet\"\n2\n\"gx\"\n\"gz\"\n\"x\"",
@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"3.9K\", \"totalSubmission\": \"9.5K\", \"totalAcceptedRaw\": 3856, \"totalSubmissionRaw\": 9530, \"acRate\": \"40.5%\"}",
"stats": "{\"totalAccepted\": \"4K\", \"totalSubmission\": \"9.8K\", \"totalAcceptedRaw\": 3984, \"totalSubmissionRaw\": 9753, \"acRate\": \"40.8%\"}",
"hints": [
"Use DP with 4 states (pos: Int, posEvil: Int, equalToS1: Bool, equalToS2: Bool) which compute the number of valid strings of size \"pos\" where the maximum common suffix with string \"evil\" has size \"posEvil\". When \"equalToS1\" is \"true\", the current valid string is equal to \"S1\" otherwise it is greater. In a similar way when equalToS2 is \"true\" the current valid string is equal to \"S2\" otherwise it is smaller.",
"To update the maximum common suffix with string \"evil\" use KMP preprocessing."