mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-06 07:51:41 +08:00
update
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"80K\", \"totalSubmission\": \"146.1K\", \"totalAcceptedRaw\": 79972, \"totalSubmissionRaw\": 146097, \"acRate\": \"54.7%\"}",
|
||||
"stats": "{\"totalAccepted\": \"80K\", \"totalSubmission\": \"146.1K\", \"totalAcceptedRaw\": 79981, \"totalSubmissionRaw\": 146109, \"acRate\": \"54.7%\"}",
|
||||
"hints": [
|
||||
"Think of the final answer as a sum of weights with + or - sign symbols infront of each weight. Actually, all sums with 1 of each sign symbol are possible.",
|
||||
"Use dynamic programming: for every possible sum with N stones, those sums +x or -x is possible with N+1 stones, where x is the value of the newest stone. (This overcounts sums that are all positive or all negative, but those don't matter.)"
|
||||
|
Reference in New Issue
Block a user