import { ListNode } from './LinkList' ; param { ListNode } head return { ListNode } function Exchange ( head ) { if ( head === null || head . next === null ) { return head ; } let next = head . next ; head . next = Exchange ( next . next ) ; next . next = head ; return next ; } export default Exchange ;