mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-04 23:11:41 +08:00
update
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"translatedContent": "<p>力扣数据中心有 <code>n</code> 台服务器,分别按从 <code>0</code> 到 <code>n-1</code> 的方式进行了编号。它们之间以「服务器到服务器」点对点的形式相互连接组成了一个内部集群,其中连接 <code>connections</code> 是无向的。从形式上讲,<code>connections[i] = [a, b]</code> 表示服务器 <code>a</code> 和 <code>b</code> 之间形成连接。任何服务器都可以直接或者间接地通过网络到达任何其他服务器。</p>\n\n<p><em>「关键连接」</em> 是在该集群中的重要连接,也就是说,假如我们将它移除,便会导致某些服务器无法访问其他服务器。</p>\n\n<p>请你以任意顺序返回该集群内的所有 「关键连接」。</p>\n\n<p> </p>\n\n<p><strong>示例 1:</strong></p>\n\n<p><strong><img alt=\"\" src=\"https://assets.leetcode-cn.com/aliyun-lc-upload/original_images/critical-connections-in-a-network.png\" style=\"height: 205px; width: 200px;\" /></strong></p>\n\n<pre>\n<strong>输入:</strong>n = 4, connections = [[0,1],[1,2],[2,0],[1,3]]\n<strong>输出:</strong>[[1,3]]\n<strong>解释:</strong>[[3,1]] 也是正确的。</pre>\n\n<p><strong>示例 2:</strong></p>\n\n<pre>\n<b>输入:</b>n = 2, connections = [[0,1]]\n<b>输出:</b>[[0,1]]\n</pre>\n\n<p> </p>\n\n<p><strong>提示:</strong></p>\n\n<ul>\n\t<li><code>1 <= n <= 10^5</code></li>\n\t<li><code>n-1 <= connections.length <= 10^5</code></li>\n\t<li><code>connections[i][0] != connections[i][1]</code></li>\n\t<li>不存在重复的连接</li>\n</ul>\n",
|
||||
"isPaidOnly": false,
|
||||
"difficulty": "Hard",
|
||||
"likes": 181,
|
||||
"likes": 187,
|
||||
"dislikes": 0,
|
||||
"isLiked": null,
|
||||
"similarQuestions": "[]",
|
||||
@@ -149,7 +149,7 @@
|
||||
"__typename": "CodeSnippetNode"
|
||||
}
|
||||
],
|
||||
"stats": "{\"totalAccepted\": \"5.4K\", \"totalSubmission\": \"10.5K\", \"totalAcceptedRaw\": 5396, \"totalSubmissionRaw\": 10527, \"acRate\": \"51.3%\"}",
|
||||
"stats": "{\"totalAccepted\": \"5.6K\", \"totalSubmission\": \"10.9K\", \"totalAcceptedRaw\": 5644, \"totalSubmissionRaw\": 10935, \"acRate\": \"51.6%\"}",
|
||||
"hints": [
|
||||
"Use Tarjan's algorithm."
|
||||
],
|
||||
|
Reference in New Issue
Block a user