Skip to content

Instantly share code, notes, and snippets.

@akhileshs
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akhileshs/e96ece16841097d7df4d to your computer and use it in GitHub Desktop.
Save akhileshs/e96ece16841097d7df4d to your computer and use it in GitHub Desktop.
List ADT
template<class A>
class List {
Node *head;
public:
List(): head(nullptr) {}
List(A a, List<A> l)
: head(new Node(a, l))
{}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment