Skip to content

Instantly share code, notes, and snippets.

@rv5047
rv5047 / doubly_linked_list.cpp
Last active March 28, 2018 14:45
doubly linked list implemented in c++
#include<iostream>
#include<stdlib.h>
using namespace std;
struct node
{
int info;
struct node *next;
struct node *prev;
}*head=NULL,*tail=NULL;
@rv5047
rv5047 / linked_list.cpp
Last active March 27, 2018 04:13
linked list program in c++
#include<iostream>
#include<stdlib.h>
using namespace std;
struct node
{
int info;
struct node *link;
}*head=NULL;