Skip to content

Q1_3_20类中delete方法未考虑NullPointException #1

Description

@Jin-H

举例:当链表总长为3时,调用delete(2)方法,node.next = node.next.next;会抛出NullPointException

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions