Lec 4 | Double Circular Linked List | Delete | Data Structures | C programming

​‪@VimalKaushik-g3t‬ Please Like, Share, and Subscribe. If any doubts or feedback, please comment below. In this video, we discussed about 1. Introduction to double circular linked list 2. Deletion in double circular linked list Here is the C program of how the deletion function works, #include (less than symbol)stdio.h(greater than symbol) #include (less than symbol)stdlib.h(greater than symbol) typedef struct dblcrl { struct dblcrl *plink; int data; struct dblcrl *nlink; }dblcrl; dblcrl *start = NULL, *last, *temp; int n, pos, elm; int main() { void create(); void display(); void delete(); int ch; while(1) { printf("1. Create\n"); printf("2. Display\n"); printf("3. Insert\n"); printf("4. Delete\n"); printf("5. Exit\n"); printf("Enter your choice: "); scanf("%d",&ch); switch(ch) { case 1 : create(); break; case 2 : display(); break; case 3 : insert(); break; case 4 : delete(); break; case 5 : exit(0); break; default: printf("Invalid Number\n"); } } return 0; } void create() { start = NULL; printf("Enter the total number of elements : "); scanf("%d",&n); printf("Enter the elements: \n"); for(int i = 0 ; i (less than symbol) n ; i++) { temp = (dblcrl*)malloc(sizeof(dblcrl)); scanf("%d",&temp- (greater than symbol)data); temp- (greater than symbol)plink = NULL; temp- (greater than symbol)nlink = NULL; if(start == NULL) { start = temp; last = temp; start- (greater than symbol)plink = last; last- (greater than symbol)nlink = start; } else { temp- (greater than symbol)plink = last; temp- (greater than symbol)nlink = start; last- (greater than symbol)nlink = temp; start- (greater than symbol)plink = temp; last = temp; } } printf("%d elements created successfully.\n",n); } void display() { if(start == NULL) { printf("List is empty\n"); return; } temp = start; do { printf("%d ", temp- (greater than symbol)data); temp = temp- (greater than symbol)nlink; } while(temp != start); printf("\n"); } void delete() { if(start == NULL) { printf("List is empty\n"); return; } int elm, flag = 0; printf("Enter element to delete: "); scanf("%d",&elm); if(start- (greater than symbol)data == elm) { temp = start; temp- (greater than symbol)nlink- (greater than symbol)plink = last; last- (greater than symbol)nlink = temp- (greater than symbol)nlink; start = start- (greater than symbol)nlink; if(n == 1) { start = NULL; } free(temp); flag++; } else { dblcrl *del = start; do { if(del- (greater than symbol)nlink- (greater than symbol)data == elm) { temp = del- (greater than symbol)nlink; del- (greater than symbol)nlink = temp- (greater than symbol)nlink; temp- (greater than symbol)nlink- (greater than symbol)plink = del; if(last == temp) { last = del; } free(temp); flag++; } del = del- (greater than symbol)nlink; }while(del != start); } if(flag == 0) { printf("Element not found\n"); } else { printf("%d deleted\n",elm); n--; } }

Lec 3 | Double Circular Linked list | Insert | Data Structures | C programming
▶︎

Lec 3 | Double Circular Linked list | Insert | Data Structures | C programming

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup
▶︎

Creator of C++: Bell Labs, Negative Overhead Abstraction, Mistakes | Bjarne Stroustrup

China Is About To Pop The AI Bubble
▶︎

China Is About To Pop The AI Bubble

From Child Prodigy to Winning Fields Medal, Nobel of Math
▶︎

From Child Prodigy to Winning Fields Medal, Nobel of Math

Can You Build a Scientific Calculator with ONE Button? | Symbolic Computation
▶︎

Can You Build a Scientific Calculator with ONE Button? | Symbolic Computation

Databricks Live Bootcamp | Day1: Introduction & Data Analytics
▶︎

Databricks Live Bootcamp | Day1: Introduction & Data Analytics

Non Corporate Movement | MBA | Anirban Dasgupta stand-up comedy
▶︎

Non Corporate Movement | MBA | Anirban Dasgupta stand-up comedy

No Boss, No Money: The Raw Reality of China’s Gen-Z Freelancers
▶︎

No Boss, No Money: The Raw Reality of China’s Gen-Z Freelancers

But what are Hamming codes? The origin of error correction
▶︎

But what are Hamming codes? The origin of error correction

He Risked Everything To Warn You: No One Is Ready For What's Coming, And The AI Companies Know It!
▶︎

He Risked Everything To Warn You: No One Is Ready For What's Coming, And The AI Companies Know It!

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker
▶︎

Turing Award Winner: Disagreeing with Google, Postgres, Future Problems | Mike Stonebraker

Lec 5 | Double Circular Linked List | Search | Data Structures | C programming
▶︎

Lec 5 | Double Circular Linked List | Search | Data Structures | C programming

Every Data Structure Simply Explained in 25 Minutes!
▶︎

Every Data Structure Simply Explained in 25 Minutes!

Jaishankar’s Brutal Introduction to Western Media: Arrogance Destroyed.
▶︎

Jaishankar’s Brutal Introduction to Western Media: Arrogance Destroyed.

The Strange Math That Predicts (Almost) Anything
▶︎

The Strange Math That Predicts (Almost) Anything

The Dirty AI lie : How the GREATEST bet in human history started to crack in June 2026?
▶︎

The Dirty AI lie : How the GREATEST bet in human history started to crack in June 2026?

If You Have A Bad Memory, I’ll Help You Fix It In 28 Minutes
▶︎

If You Have A Bad Memory, I’ll Help You Fix It In 28 Minutes

1986: How to Spot the Upper Class | That's Life! | BBC Archive
▶︎

1986: How to Spot the Upper Class | That's Life! | BBC Archive

Judge LOSES IT After Discovering What She Did
▶︎

Judge LOSES IT After Discovering What She Did

The Big Short (2015): The Jenga Scene – Explaining the Financial Collapse
▶︎

The Big Short (2015): The Jenga Scene – Explaining the Financial Collapse