Skip to content

Commit 15229cf

Browse files
authored
Update Linked List/README.markdown
1 parent 81e2726 commit 15229cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Linked List/README.markdown

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