Skip to content

Commit

Permalink
Update Linked List/README.markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ash authored Aug 29, 2020
1 parent 81e2726 commit 15229cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Linked List/README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ Iterative Approach:
Recursive Approach:
```swift
public func reverse(node: head) {
if (!head || !(head.next)) {
if !head || !head.next {
return head
}
let temp = reverse(head.next)
Expand Down

0 comments on commit 15229cf

Please sign in to comment.