mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 15:01:40 +08:00
update
This commit is contained in:
@@ -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).",
|
||||
|
Reference in New Issue
Block a user