1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-09-07 08:21:41 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
2023-12-09 19:57:46 +08:00
parent 9bc4722a45
commit 3770b44d1e
4792 changed files with 10889 additions and 10886 deletions

View File

@@ -155,7 +155,7 @@
"__typename": "CodeSnippetNode"
}
],
"stats": "{\"totalAccepted\": \"11.3K\", \"totalSubmission\": \"31.1K\", \"totalAcceptedRaw\": 11334, \"totalSubmissionRaw\": 31072, \"acRate\": \"36.5%\"}",
"stats": "{\"totalAccepted\": \"11.3K\", \"totalSubmission\": \"31.1K\", \"totalAcceptedRaw\": 11342, \"totalSubmissionRaw\": 31086, \"acRate\": \"36.5%\"}",
"hints": [
"From the given array favorite, create a graph where for every index i, there is a directed edge from favorite[i] to i. The graph will be a combination of cycles and chains of acyclic edges. Now, what are the ways in which we can choose employees to sit at the table?",
"The first way by which we can choose employees is by selecting a cycle of the graph. It can be proven that in this case, the employees that do not lie in the cycle can never be seated at the table.",