mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-05 15:31:43 +08:00
存量题库数据更新
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
<p>Return <code>true</code> if you can finish all courses. Otherwise, return <code>false</code>.</p>
|
||||
|
||||
<p> </p>
|
||||
<p><strong>Example 1:</strong></p>
|
||||
<p><strong class="example">Example 1:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> numCourses = 2, prerequisites = [[1,0]]
|
||||
@@ -16,7 +16,7 @@
|
||||
To take course 1 you should have finished course 0. So it is possible.
|
||||
</pre>
|
||||
|
||||
<p><strong>Example 2:</strong></p>
|
||||
<p><strong class="example">Example 2:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> numCourses = 2, prerequisites = [[1,0],[0,1]]
|
||||
@@ -29,7 +29,7 @@ To take course 1 you should have finished course 0, and to take course 0 you sho
|
||||
<p><strong>Constraints:</strong></p>
|
||||
|
||||
<ul>
|
||||
<li><code>1 <= numCourses <= 10<sup>5</sup></code></li>
|
||||
<li><code>1 <= numCourses <= 2000</code></li>
|
||||
<li><code>0 <= prerequisites.length <= 5000</code></li>
|
||||
<li><code>prerequisites[i].length == 2</code></li>
|
||||
<li><code>0 <= a<sub>i</sub>, b<sub>i</sub> < numCourses</code></li>
|
||||
|
Reference in New Issue
Block a user