1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-04 15:01:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 15:21:05 +08:00
parent b84ae535b7
commit e730aa6794
2244 changed files with 8703 additions and 59499 deletions

View File

@@ -143,7 +143,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"13.9K\", \"totalSubmission\": \"33.4K\", \"totalAcceptedRaw\": 13882, \"totalSubmissionRaw\": 33436, \"acRate\": \"41.5%\"}",
"stats": "{\"totalAccepted\": \"13.9K\", \"totalSubmission\": \"33.5K\", \"totalAcceptedRaw\": 13907, \"totalSubmissionRaw\": 33494, \"acRate\": \"41.5%\"}",
"hints": [
"Try thinking about the problem as if the array is empty. Then you only need to form goal using elements whose absolute value is <= limit.",
"You can greedily set all of the elements except one to limit or -limit, so the number of elements you need is ceil(abs(goal)/ limit).",