1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-07 00: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\": \"150.9K\", \"totalSubmission\": \"216.3K\", \"totalAcceptedRaw\": 150897, \"totalSubmissionRaw\": 216318, \"acRate\": \"69.8%\"}",
"stats": "{\"totalAccepted\": \"150.9K\", \"totalSubmission\": \"216.4K\", \"totalAcceptedRaw\": 150924, \"totalSubmissionRaw\": 216356, \"acRate\": \"69.8%\"}",
"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.)"