mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 15:01:40 +08:00
update
This commit is contained in:
@@ -143,7 +143,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"21.6K\", \"totalSubmission\": \"51.3K\", \"totalAcceptedRaw\": 21578, \"totalSubmissionRaw\": 51298, \"acRate\": \"42.1%\"}",
|
||||
"stats": "{\"totalAccepted\": \"21.6K\", \"totalSubmission\": \"51.3K\", \"totalAcceptedRaw\": 21580, \"totalSubmissionRaw\": 51301, \"acRate\": \"42.1%\"}",
|
||||
"hints": [
|
||||
"Consider a trio with nodes u, v, and w. The degree of the trio is just degree(u) + degree(v) + degree(w) - 6. The -6 comes from subtracting the edges u-v, u-w, and v-w, which are counted twice each in the vertex degree calculation.",
|
||||
"To get the trios (u,v,w), you can iterate on u, then iterate on each w,v such that w and v are neighbors of u and are neighbors of each other."
|
||||
|
Reference in New Issue
Block a user