mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-07 00:11:41 +08:00
update
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"394K\", \"totalSubmission\": \"880.3K\", \"totalAcceptedRaw\": 393961, \"totalSubmissionRaw\": 880291, \"acRate\": \"44.8%\"}",
|
||||
"stats": "{\"totalAccepted\": \"394K\", \"totalSubmission\": \"880.4K\", \"totalAcceptedRaw\": 394020, \"totalSubmissionRaw\": 880411, \"acRate\": \"44.8%\"}",
|
||||
"hints": [
|
||||
"Since House[1] and House[n] are adjacent, they cannot be robbed together. Therefore, the problem becomes to rob either House[1]-House[n-1] or House[2]-House[n], depending on which choice offers more money. Now the problem has degenerated to the <a href =\"https://leetcode.com/problems/house-robber/description/\">House Robber</a>, which is already been solved."
|
||||
],
|
||||
|
Reference in New Issue
Block a user