mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-07 00:11:41 +08:00
移除零宽空格
This commit is contained in:
@@ -4,8 +4,8 @@
|
||||
|
||||
<ul>
|
||||
<li>There are <code>n</code> languages numbered <code>1</code> through <code>n</code>,</li>
|
||||
<li><code>languages[i]</code> is the set of languages the <code>i<sup>th</sup></code> user knows, and</li>
|
||||
<li><code>friendships[i] = [u<sub>i</sub>, v<sub>i</sub>]</code> denotes a friendship between the users <code>u<sup></sup><sub>i</sub></code> and <code>v<sub>i</sub></code>.</li>
|
||||
<li><code>languages[i]</code> is the set of languages the <code>i<sup>th</sup></code> user knows, and</li>
|
||||
<li><code>friendships[i] = [u<sub>i</sub>, v<sub>i</sub>]</code> denotes a friendship between the users <code>u<sup></sup><sub>i</sub></code> and <code>v<sub>i</sub></code>.</li>
|
||||
</ul>
|
||||
|
||||
<p>You can choose <strong>one</strong> language and teach it to some users so that all friends can communicate with each other. Return <i data-stringify-type="italic">the</i> <i><strong>minimum</strong> </i><i data-stringify-type="italic">number of users you need to teach.</i></p>
|
||||
@@ -36,8 +36,8 @@ Note that friendships are not transitive, meaning if <code>x</code> is a friend
|
||||
<li><code>1 <= m <= 500</code></li>
|
||||
<li><code>1 <= languages[i].length <= n</code></li>
|
||||
<li><code>1 <= languages[i][j] <= n</code></li>
|
||||
<li><code>1 <= u<sub>i</sub> < v<sub>i</sub> <= languages.length</code></li>
|
||||
<li><code>1 <= u<sub>i</sub> < v<sub>i</sub> <= languages.length</code></li>
|
||||
<li><code>1 <= friendships.length <= 500</code></li>
|
||||
<li>All tuples <code>(u<sub>i, </sub>v<sub>i</sub>)</code> are unique</li>
|
||||
<li>All tuples <code>(u<sub>i, </sub>v<sub>i</sub>)</code> are unique</li>
|
||||
<li><code>languages[i]</code> contains only unique values</li>
|
||||
</ul>
|
||||
|
Reference in New Issue
Block a user