File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ Iterative Approach:
486486
Recursive Approach:
487487
```swift
488488
public func reverse(node: head) {
489-
if (!head || !(head.next)) {
489+
if !head || !head.next {
490490
return head
491491
}
492492
let temp = reverse(head.next)

0 commit comments

Comments
 (0)