Server Code | Code | Representation of Linked List

Code:
class LinkedList
{
    Node head;  // head of list
 
    /* Linked list Node*/
    class Node
    {
        int data;
        Node next;
          
        // Constructor to create a new node
        // Next is by default initialized as null
        Node(int d) {data = d;}
    }
}