C Program to Convert Doubly Linked List to Balanced BST

This C Program creates a balanced binary search tree which has same data members as the given Doubly linked list by changing the pointers internally. Here is a source code of the C program to create a balanced binary search tree which has same data members as that of a doubly linked list. The C … Read more

advertisement

C Program to Solve Josephus Problem using Linked List

This C Program Solves the Josephus Problem using Linked List. Josephus Problem talks about a problem where there are people standing in a circle waiting to be executed. The counting out begins at some point in the circle and proceeds around the circle in a fixed direction. In each step, a certain number of people … Read more

advertisement

C program to Swap Two Nodes in a Circular Linked List

This C Program interchanges the two adjacent nodes given a circular linked list. The nodes exchanged are as per user’s entered node position. Here is a source code of the C program to interchange the two adjacent nodes given a circular linked list. The C program is successfully compiled and run on a Linux system. … Read more

advertisement

C Program to Swap Two Elements of the List without Key Field

This C Program interchanges the two elements of the list without touching the key field. The nodes are exchanged in the address space. Here is a source code of the C program to interchange the two elements of the list without touching the key field. The C program is successfully compiled and run on a … Read more

advertisement

C Program to Search an Element in a Linked List

This C Program to search for an element in a linked list. Here is a source code of the C program to search for an element in a linked list. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Search for … Read more

advertisement

C Program to Convert Binary Tree to Circular Doubly Linked List

This C Program takes an ordered binary tree & rearranges the internal pointers to make a circular doubly linked list. Here is a source code of the C program to transform an ordered binary tree & rearranges the internal pointers to make a circular doubly linked list. The C program is successfully compiled and run … Read more

advertisement

C Program to Add Corresponding Positioned Elements of Two Linked Lists

This C Program adds the corresponding positioned elements of 2 linked lists and display. Here is source code of the C Program to add corresponding positioned elements of 2 linked lists. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Add … Read more

advertisement

C Program to Check if Singly Linked List is Palindrome

This C Program checks whether the singly linked list is a palindrome. A palindrome is a pattern in list in which the contents when read from front is the same as when read from last. Here is source code of the C Program to check whether a singly linked list is a palindrome. The C … Read more

advertisement

C Program to Find Middle Element of a Linked List

This C Program prints the middle most node of a linked list. Here is source code of the C Program print the middle most node of a linked list. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Print Middle most … Read more

advertisement

C Program to Detect Cycle in a Linked List

This C Program detects if there is a cycle that exists in a linked list. Here is a source code of the C Program to detect the cycle in a linked list. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.