Skip to content

Add: v1.4.2 #606

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<p>Given the <code>edges</code> of a directed graph, and two nodes <code>source</code> and <code>destination</code> of this graph, determine whether or not all paths starting from <code>source</code> eventually end at <code>destination</code>, that is:</p>

Expand Down
4 changes: 3 additions & 1 deletion problems/campus-bikes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ Worker 0 grabs Bike 0 at first. Worker 1 and Worker 2 share the same distance to
### Hints
<details>
<summary>Hint 1</summary>
Sort the elements by distance then in case of tie, sort them by the index of the worker, and if there still ties sort then by the index of the bike.Follow up: Can you do this in less than O(nlogn) time, where n is the total number of pairs between workers and bikes?.
<p>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.</p>

<p>Can you do this in less than O(nlogn) time, where n is the total number of pairs between workers and bikes?</p>
</details>

<details>
Expand Down
1 change: 1 addition & 0 deletions problems/confusing-number/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ We get an invalid number after rotating <code>25</code>.

### 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
<details>
Expand Down