mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -131,7 +131,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"28K\", \"totalSubmission\": \"74K\", \"totalAcceptedRaw\": 27962, \"totalSubmissionRaw\": 74020, \"acRate\": \"37.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"28K\", \"totalSubmission\": \"74K\", \"totalAcceptedRaw\": 27963, \"totalSubmissionRaw\": 74023, \"acRate\": \"37.8%\"}",
|
||||
"hints": [
|
||||
"Based on whether A[i-1] < A[i] < A[i+1], A[i-1] < A[i] > A[i+1], or A[i-1] > A[i] > A[i+1], we are either at the left side, peak, or right side of the mountain. We can binary search to find the peak.\r\nAfter finding the peak, we can binary search two more times to find whether the value occurs on either side of the peak."
|
||||
],
|
||||
|
Reference in New Issue
Block a user