Skip to content

Commit 56e2fc9

Browse files
committed
Change return type to brief type.
Fixes :#865 Signed-off-by: bbvch13531 <[email protected]>
1 parent 3849a1d commit 56e2fc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: Binary Search Tree/Solution 1/BinarySearchTree.playground/Sources/BinarySearchTree.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ extension BinarySearchTree {
235235
/*
236236
Finds the node whose value precedes our value in sorted order.
237237
*/
238-
public func predecessor() -> BinarySearchTree<T>? {
238+
public func predecessor() -> BinarySearchTree? {
239239
if let left = left {
240240
return left.maximum()
241241
} else {
@@ -251,7 +251,7 @@ extension BinarySearchTree {
251251
/*
252252
Finds the node whose value succeeds our value in sorted order.
253253
*/
254-
public func successor() -> BinarySearchTree<T>? {
254+
public func successor() -> BinarySearchTree? {
255255
if let right = right {
256256
return right.minimum()
257257
} else {

0 commit comments

Comments
 (0)