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

@@ -143,7 +143,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"81.4K\", \"totalSubmission\": \"177.8K\", \"totalAcceptedRaw\": 81406, \"totalSubmissionRaw\": 177837, \"acRate\": \"45.8%\"}",
"stats": "{\"totalAccepted\": \"82.3K\", \"totalSubmission\": \"179.7K\", \"totalAcceptedRaw\": 82297, \"totalSubmissionRaw\": 179653, \"acRate\": \"45.8%\"}",
"hints": [
"Scan through the array to find the unique largest element `m`, keeping track of it's index `maxIndex`.\r\n\r\nScan through the array again. If we find some `x != m` with `m < 2*x`, we should return `-1`.\r\n\r\nOtherwise, we should return `maxIndex`."
],