题解 | #反转链表# js
反转链表
http://www.nowcoder.com/practice/75e878df47f24fdc9dc3e400ec6058ca
var reverseList = function(head) {
    if(head === null) return null
    let p = null, m = head, n = head.next
    while(m !== null){
        console.log(m.val)
        m.next = p
        p = m
        m = n 
        if(n !== null)n = n.next
    }
    return p
};   
 


 投递中国邮政储蓄银行等公司10个岗位
投递中国邮政储蓄银行等公司10个岗位