遍历链表,如果node.next.prev !=node,就说明node是异常节点,这样应该对吧
3 2

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务