mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 11:21:42 +08:00
批量更新数据
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<p>假设 <code>M(initial)</code> 是在恶意软件停止传播之后,整个网络中感染恶意软件的最终节点数。</p>
|
||||
|
||||
<p>我们可以从 <code>initial</code> 中<strong>删除一个节点</strong>,<strong>并完全移除该节点以及从该节点到任何其他节点的任何连接。</strong></p>
|
||||
<p>我们可以从 <code>initial</code> 中 <strong>删除一个节点</strong>,<strong>并完全移除该节点以及从该节点到任何其他节点的任何连接。</strong></p>
|
||||
|
||||
<p>请返回移除后能够使 <code>M(initial)</code> 最小化的节点。如果有多个节点满足条件,返回索引 <strong>最小的节点</strong> 。</p>
|
||||
|
||||
@@ -13,21 +13,21 @@
|
||||
<ol>
|
||||
</ol>
|
||||
|
||||
<p><strong>示例 1:</strong></p>
|
||||
<p><strong class="example">示例 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>graph = [[1,1,0],[1,1,0],[0,0,1]], initial = [0,1]
|
||||
<strong>输出:</strong>0
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 2:</strong></p>
|
||||
<p><strong class="example">示例 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>graph = [[1,1,0],[1,1,1],[0,1,1]], initial = [0,1]
|
||||
<strong>输出:</strong>1
|
||||
</pre>
|
||||
|
||||
<p><strong>示例 3:</strong></p>
|
||||
<p><strong class="example">示例 3:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>输入:</strong>graph = [[1,1,0,0],[1,1,1,0],[0,1,1,1],[0,0,1,1]], initial = [0,1]
|
||||
|
Reference in New Issue
Block a user