mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-08 08:51:42 +08:00
update
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
],
|
||||
"companyTagStats": null,
|
||||
"codeSnippets": null,
|
||||
"stats": "{\"totalAccepted\": \"1.8K\", \"totalSubmission\": \"3.6K\", \"totalAcceptedRaw\": 1771, \"totalSubmissionRaw\": 3575, \"acRate\": \"49.5%\"}",
|
||||
"stats": "{\"totalAccepted\": \"1.8K\", \"totalSubmission\": \"3.6K\", \"totalAcceptedRaw\": 1775, \"totalSubmissionRaw\": 3579, \"acRate\": \"49.6%\"}",
|
||||
"hints": [
|
||||
"Split all numbers into several groups, with each group being an arithmetic sequence with a common difference of k.",
|
||||
"How many K-free subsets are there for each group? This can be solved by dp: dp[i] = dp[i-1] + dp[i-2], meaning if we choose ith element, we cannot choose (i-1)th; otherwise we can choose (i-1)th element.",
|
||||
|
Reference in New Issue
Block a user