This function prints contents of linked list starting from the given node
void display ( struct Node * head ) { struct Node * temp = head ; while ( temp != NULL ) { cout << temp -> data << " ▁ " ; temp = temp -> next ; } cout << endl ; }