mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-10-22 21:46:46 +08:00
update
This commit is contained in:
@@ -155,7 +155,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"2.8K\", \"totalSubmission\": \"7.5K\", \"totalAcceptedRaw\": 2846, \"totalSubmissionRaw\": 7464, \"acRate\": \"38.1%\"}",
|
||||
"stats": "{\"totalAccepted\": \"2.9K\", \"totalSubmission\": \"7.5K\", \"totalAcceptedRaw\": 2852, \"totalSubmissionRaw\": 7475, \"acRate\": \"38.2%\"}",
|
||||
"hints": [
|
||||
"Use backtracking with states (bitmask, degrees) where bitmask represents the set of courses, if the ith bit is 1 then the ith course was taken, otherwise, you can take the ith course. Degrees represent the degree for each course (nodes in the graph).",
|
||||
"Note that you can only take nodes (courses) with degree = 0 and it is optimal at every step in the backtracking take the maximum number of courses limited by k."
|
||||
|
Reference in New Issue
Block a user