Last active
August 29, 2015 14:18
-
-
Save akhileshs/e96ece16841097d7df4d to your computer and use it in GitHub Desktop.
List ADT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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