mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-08 08:51:42 +08:00
update
This commit is contained in:
@@ -161,7 +161,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"14.9K\", \"totalSubmission\": \"22.3K\", \"totalAcceptedRaw\": 14944, \"totalSubmissionRaw\": 22297, \"acRate\": \"67.0%\"}",
|
||||
"stats": "{\"totalAccepted\": \"14.9K\", \"totalSubmission\": \"22.3K\", \"totalAcceptedRaw\": 14945, \"totalSubmissionRaw\": 22298, \"acRate\": \"67.0%\"}",
|
||||
"hints": [
|
||||
"Let f(n) denote the probability of the n-th person getting correct seat in n-person case, then:\r\n\r\nf(1) = 1 (base case, trivial)\r\nf(2) = 1/2 (also trivial)",
|
||||
"Try to calculate f(3), f(4), and f(5) using the base cases. What if the value of them?\r\nf(i) for i >= 2 will also be 1/2.",
|
||||
|
Reference in New Issue
Block a user