Skip to content

Instantly share code, notes, and snippets.

@tanaytoshniwal
Created August 18, 2019 20:01
Show Gist options
  • Save tanaytoshniwal/1534da124b682764518ed88a2757ba26 to your computer and use it in GitHub Desktop.
Save tanaytoshniwal/1534da124b682764518ed88a2757ba26 to your computer and use it in GitHub Desktop.
Linked List Main Function
int main(){
Node *head = NULL;
int n;
cin >> n;
while(n--){
int t;
cin >> t;
head = insert(head, t);
}
print(head);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment