Skip to content

Instantly share code, notes, and snippets.

View shreyanshi2228's full-sized avatar
🎯
Focusing

Shreyanshi Sharma shreyanshi2228

🎯
Focusing
View GitHub Profile
@shreyanshi2228
shreyanshi2228 / stack_implementation_using_doubly_linkedlist.c
Last active October 8, 2022 05:00
I have implemented stack using doubly linked list in C.
#include <stdio.h>
#include <stdlib.h>
struct node
{
int data;
struct node* next;
struct node* prev;
} *top;
@shreyanshi2228
shreyanshi2228 / Queue_implementation_using_singly_linkedlist.c
Created May 1, 2020 06:21
I have implemented a Queue using singly linked list
#include <stdio.h>
#include <stdlib.h>
struct node
{
int data;
struct node* link;
};
struct node *rear = NULL;
struct node *front= NULL;