Skip to content

Commit

Permalink
Update README.markdown
Browse files Browse the repository at this point in the history
remove duplicate parameter
  • Loading branch information
jinthislife authored May 11, 2020
1 parent 667d265 commit 4617d94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Binary Search Tree/README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ As a result, doing `tree.search(100)` gives nil.
You can check whether a tree is a valid binary search tree with the following method:

```swift
public func isBST(minValue minValue: T, maxValue: T) -> Bool {
public func isBST(minValue: T, maxValue: T) -> Bool {
if value < minValue || value > maxValue { return false }
let leftBST = left?.isBST(minValue: minValue, maxValue: value) ?? true
let rightBST = right?.isBST(minValue: value, maxValue: maxValue) ?? true
Expand Down

0 comments on commit 4617d94

Please sign in to comment.