1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-05 07:21:40 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2022-03-29 16:56:27 +08:00
parent e730aa6794
commit ad15da05aa
2517 changed files with 7358 additions and 7332 deletions

View File

@@ -155,7 +155,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"11.3K\", \"totalSubmission\": \"17K\", \"totalAcceptedRaw\": 11345, \"totalSubmissionRaw\": 16991, \"acRate\": \"66.8%\"}",
"stats": "{\"totalAccepted\": \"11.4K\", \"totalSubmission\": \"17K\", \"totalAcceptedRaw\": 11365, \"totalSubmissionRaw\": 17018, \"acRate\": \"66.8%\"}",
"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.",