mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 15:31:43 +08:00
update
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"6.1K\", \"totalSubmission\": \"19.6K\", \"totalAcceptedRaw\": 6105, \"totalSubmissionRaw\": 19617, \"acRate\": \"31.1%\"}",
|
||||
"stats": "{\"totalAccepted\": \"6.1K\", \"totalSubmission\": \"19.6K\", \"totalAcceptedRaw\": 6105, \"totalSubmissionRaw\": 19619, \"acRate\": \"31.1%\"}",
|
||||
"hints": [
|
||||
"Maintain two pointers: i and j. We need to perform a similar operation: while t[0:i] + t[j:n] is not a subsequence of the string s, increase j.",
|
||||
"We can check the condition greedily. Create the array leftmost[i] which denotes minimum index k, such that in prefix s[0:k] exists subsequence t[0:i]. Similarly, we define rightmost[i].",
|
||||
|
Reference in New Issue
Block a user