diff --git a/internal/version/version.go b/internal/version/version.go index 7f825ba77..45b862cf7 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -7,7 +7,7 @@ import ( "github.com/openset/leetcode/internal/base" ) -const version = "1.4.1" +const version = "1.4.2" var CmdVersion = &base.Command{ Run: runVersion, diff --git a/problems/all-paths-from-source-lead-to-destination/README.md b/problems/all-paths-from-source-lead-to-destination/README.md index 4dfc75add..763ef1259 100644 --- a/problems/all-paths-from-source-lead-to-destination/README.md +++ b/problems/all-paths-from-source-lead-to-destination/README.md @@ -9,7 +9,7 @@ [Next >](https://github.com/openset/leetcode/tree/master/problems/missing-element-in-sorted-array "Missing Element in Sorted Array") -## 1059. All Paths from Source Lead to Destination (Hard) +## 1059. All Paths from Source Lead to Destination (Medium)
Given the edges
of a directed graph, and two nodes source
and destination
of this graph, determine whether or not all paths starting from source
eventually end at destination
, that is:
Sort the elements by distance. In case of a tie, sort them by the index of the worker. After that, if there are still ties, sort them by the index of the bike.
+ +Can you do this in less than O(nlogn) time, where n is the total number of pairs between workers and bikes?
25
.
### Similar Questions
1. [Strobogrammatic Number](https://github.com/openset/leetcode/tree/master/problems/strobogrammatic-number) (Easy)
+ 1. [Confusing Number II](https://github.com/openset/leetcode/tree/master/problems/confusing-number-ii) (Hard)
### Hints