Skip to content

Commit 4617d94

Browse files
authored
Update README.markdown
remove duplicate parameter
1 parent 667d265 commit 4617d94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: Binary Search Tree/README.markdown

+1-1
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)