Title: leetcode207:课程表问题 · Issue #66 · sisterAn/JavaScript-Algorithms · GitHub
Open Graph Title: leetcode207:课程表问题 · Issue #66 · sisterAn/JavaScript-Algorithms
X Title: leetcode207:课程表问题 · Issue #66 · sisterAn/JavaScript-Algorithms
Description: 你这个学期必须选修 numCourse 门课程,记为 0 到 numCourse-1 。 在选修某些课程之前需要一些先修课程。 例如,想要学习课程 0 ,你需要先完成课程 1 ,我们用一个匹配来表示他们:[0,1] 给定课程总量以及它们的先决条件,请你判断是否可能完成所有课程的学习? 示例 1: 输入: 2, [[1,0]] 输出: true 解释: 总共有 2 门课程。学习课程 1 之前,你需要完成课程 0。所以这是可能的。 示例 2: 输入: 2, [[1,0],[...
Open Graph Description: 你这个学期必须选修 numCourse 门课程,记为 0 到 numCourse-1 。 在选修某些课程之前需要一些先修课程。 例如,想要学习课程 0 ,你需要先完成课程 1 ,我们用一个匹配来表示他们:[0,1] 给定课程总量以及它们的先决条件,请你判断是否可能完成所有课程的学习? 示例 1: 输入: 2, [[1,0]] 输出: true 解释: 总共有 2 门课程。学习课程 1 之前,...
X Description: 你这个学期必须选修 numCourse 门课程,记为 0 到 numCourse-1 。 在选修某些课程之前需要一些先修课程。 例如,想要学习课程 0 ,你需要先完成课程 1 ,我们用一个匹配来表示他们:[0,1] 给定课程总量以及它们的先决条件,请你判断是否可能完成所有课程的学习? 示例 1: 输入: 2, [[1,0]] 输出: true 解释: 总共有 2 门课程。学习课程 1 之前,...
Opengraph URL: https://github.com/sisterAn/JavaScript-Algorithms/issues/66
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"leetcode207:课程表问题","articleBody":"你这个学期必须选修 `numCourse` 门课程,记为 `0` 到 `numCourse-1` 。\r\n\r\n在选修某些课程之前需要一些先修课程。 例如,想要学习课程 0 ,你需要先完成课程 1 ,我们用一个匹配来表示他们:`[0,1]`\r\n\r\n给定课程总量以及它们的先决条件,请你判断是否可能完成所有课程的学习?\r\n\r\n**示例 1:**\r\n\r\n```js\r\n输入: 2, [[1,0]] \r\n输出: true\r\n解释: 总共有 2 门课程。学习课程 1 之前,你需要完成课程 0。所以这是可能的。\r\n```\r\n\r\n**示例 2:**\r\n\r\n```js\r\n输入: 2, [[1,0],[0,1]]\r\n输出: false\r\n解释: 总共有 2 门课程。学习课程 1 之前,你需要先完成课程 0;并且学习课程 0 之前,你还应先完成课程 1。这是不可能的。\r\n```\r\n\r\n**提示:**\r\n\r\n- 输入的先决条件是由 **边缘列表** 表示的图形,而不是 邻接矩阵\r\n- 你可以假定输入的先决条件中没有重复的边\r\n- `1 \u003c= numCourses \u003c= 10^5`\r\n\r\n附赠leetcode地址:[leetcode](https://leetcode-cn.com/problems/course-schedule/solution/tu-jie-ke-cheng-biao-wen-ti-by-user7746o/)","author":{"url":"https://github.com/sisterAn","@type":"Person","name":"sisterAn"},"datePublished":"2020-06-17T16:03:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/66/JavaScript-Algorithms/issues/66"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3cb69db0-69f2-7cb0-93cd-958a3f18d61e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ACA0:3A6082:2ECF83D:3D52DE6:696B84A5 |
| html-safe-nonce | 8dd939c4d013b2e0cf665b0ae51690ed08a5422f74d401ef2edd3520d1c6638d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQ0EwOjNBNjA4MjoyRUNGODNEOjNENTJERTY6Njk2Qjg0QTUiLCJ2aXNpdG9yX2lkIjoiNzk5MTg2NTE1MjMyOTQ1MDY2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3de7cedaaaa8c67de498a9c088b78fa2891fafe25f63dc5d5dc9c1f76376ff33 |
| hovercard-subject-tag | issue:640562027 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/sisterAn/JavaScript-Algorithms/66/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6681aad526445c7a0284c68b3b20dc62b8e7b98ead4fc228818cf374155d653b/sisterAn/JavaScript-Algorithms/issues/66 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6681aad526445c7a0284c68b3b20dc62b8e7b98ead4fc228818cf374155d653b/sisterAn/JavaScript-Algorithms/issues/66 |
| og:image:alt | 你这个学期必须选修 numCourse 门课程,记为 0 到 numCourse-1 。 在选修某些课程之前需要一些先修课程。 例如,想要学习课程 0 ,你需要先完成课程 1 ,我们用一个匹配来表示他们:[0,1] 给定课程总量以及它们的先决条件,请你判断是否可能完成所有课程的学习? 示例 1: 输入: 2, [[1,0]] 输出: true 解释: 总共有 2 门课程。学习课程 1 之前,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sisterAn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/sisterAn/JavaScript-Algorithms git https://github.com/sisterAn/JavaScript-Algorithms.git |
| octolytics-dimension-user_id | 19721451 |
| octolytics-dimension-user_login | sisterAn |
| octolytics-dimension-repository_id | 252061924 |
| octolytics-dimension-repository_nwo | sisterAn/JavaScript-Algorithms |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 252061924 |
| octolytics-dimension-repository_network_root_nwo | sisterAn/JavaScript-Algorithms |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width