topological sort
Vendredimatin
这个作者很懒,什么都没留下…
展开
-
Leetcode 207/210. Course Schedule I/II
There are a total of n courses you have to take, labeled from 0 to n-1.Some courses may have prerequisites, for example to take course 0 you have to first take course 1, which is expressed as a pair:...原创 2020-02-09 18:36:09 · 180 阅读 · 0 评论 -
Leetcode 329. Longest Increasing Path in a Matrix
Given an integer matrix, find the length of the longest increasing path.From each cell, you can either move to four directions: left, right, up or down. You may NOT move diagonally or move outside of...原创 2020-02-09 18:18:14 · 134 阅读 · 0 评论