1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 23:11:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2023-12-09 19:57:46 +08:00
parent 9bc4722a45
commit 3770b44d1e
4792 changed files with 10889 additions and 10886 deletions

View File

@@ -149,7 +149,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"226.6K\", \"totalSubmission\": \"470.5K\", \"totalAcceptedRaw\": 226567, \"totalSubmissionRaw\": 470460, \"acRate\": \"48.2%\"}",
"stats": "{\"totalAccepted\": \"226.6K\", \"totalSubmission\": \"470.5K\", \"totalAcceptedRaw\": 226590, \"totalSubmissionRaw\": 470508, \"acRate\": \"48.2%\"}",
"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`."
],