Skip to content

Commit 7c7afb9

Browse files
authored
Merge pull request #933 from jinthislife/jinthislife-bst-duplicateparam
Update README.markdown
2 parents 2c47dc3 + 4617d94 commit 7c7afb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Binary Search Tree/README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ As a result, doing `tree.search(100)` gives nil.
557557
You can check whether a tree is a valid binary search tree with the following method:
558558

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

0 commit comments

Comments
 (0)