Closed mcrwayfun closed 5 years ago
当tobeDelete为尾节点时,无须进行遍历操作,因为当head遍历到tobeDelete时,指向的是同一个引用。可以直接将tobeDelete = null即可
当tobeDelete为尾节点时,无须进行遍历操作,因为当head遍历到tobeDelete时,指向的是同一个引用。可以直接将tobeDelete = null即可