Node of the list where every element points to next element and the head of the list would look like this :
typedef struct Node {
int value;
Node* next;
Node** head;
} Node;
head can change, therefore we were using Node ** head. I know classes are passed as reference, so I can make first 2 attributes like this:
class Node {
int value;
Node next;
????
}
How to make the head attribute?