Swift 3ms
\nclass Solution {\n    func middleNode(_ head: ListNode?) -> ListNode? {\n        \n        var slow: ListNode? = head\n        var fast: ListNode? = head\n   
```\nclass Solution {\n    func middleNode(_ head: ListNode?) -> ListNode? {\n        \n        var slow: ListNode? = head\n        var fast: ListNode? = head\n        \n        while fast?.next != nil{\n            \n            slow = slow?.next\n            fast = fast?.next?.next\n        }\n        \n        return slow \n    }\n}\n```\n\nRuntime: 3 ms, faster than 79.37% of Swift online submissions for Middle of the Linked List.\nMemory Usage: 14 MB, less than 64.63% of Swift online submissions for Middle of the Linked List.\n
[]