Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
382 B
0
Indexable
Never
Class Node { 
     int data;    the data of this node is stored here
     Node next;   the reference to the next node is here(the beloved pointer)
     
     public Node(int data)  {
          this.data = data;
          this.next = null;
    }
}

class LinkedList {
    Node head;
    public void addNode(int data){}
    public void deleteNode(int data){}
}