mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 07:21:40 +08:00
update
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
"translatedContent": null,
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 522,
|
||||
"likes": 523,
|
||||
"dislikes": 167,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[{\"title\": \"Valid Parenthesis String\", \"titleSlug\": \"valid-parenthesis-string\", \"difficulty\": \"Medium\", \"translatedTitle\": null}]",
|
||||
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"13.2K\", \"totalSubmission\": \"22K\", \"totalAcceptedRaw\": 13174, \"totalSubmissionRaw\": 22029, \"acRate\": \"59.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"13.2K\", \"totalSubmission\": \"22K\", \"totalAcceptedRaw\": 13184, \"totalSubmissionRaw\": 22041, \"acRate\": \"59.8%\"}",
|
||||
"hints": [
|
||||
"Draw a line from (x, y) to (x+1, y+1) if we see a \"1\", else to (x+1, y-1).\r\nA special substring is just a line that starts and ends at the same y-coordinate, and that is the lowest y-coordinate reached.\r\nCall a mountain a special substring with no special prefixes - ie. only at the beginning and end is the lowest y-coordinate reached.\r\nIf F is the answer function, and S has mountain decomposition M1,M2,M3,...,Mk, then the answer is:\r\nreverse_sorted(F(M1), F(M2), ..., F(Mk)).\r\nHowever, you'll also need to deal with the case that S is a mountain, such as 11011000 -> 11100100."
|
||||
],
|
||||
|
Reference in New Issue
Block a user