import { ListNode } from './LinkList' ; param { ListNode } head return { ListNode } function LinkListMiddle ( head ) { if ( head === null ) { return null ; } let fast = head ; let slow = head ; while ( fast ) { if ( ! fast . next ) { break ; } slow = slow . next ; fast = fast . next . next ; } return slow ; } export { LinkListMiddle } ;