Skip to content

Instantly share code, notes, and snippets.

@akhileshs
Last active August 29, 2015 14:18
Show Gist options
  • Select an option

  • Save akhileshs/e96ece16841097d7df4d to your computer and use it in GitHub Desktop.

Select an option

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