Spiral Order Traversal of a Tree using Recursion

This is a C Program for Spiral Order Traversal of a Tree using Recursion. Problem Description In this program we are going to create a tree, and we will traverse it in a spiral order. Spiral Traversal basically means first traversing the nodes in a tree left to right then right to left or vice … Read more

advertisement

Level Order Traversal of a Tree using Recursion

This is a C Program for Level Order Traversal of a Tree using Recursion. Problem Description Here in this problem we will be traversing the nodes of tree from left to right level by level. First the nodes at level 1 will be printed followed by the level two and so on. This problem is … Read more

advertisement

C Program to Search an Element in a Binary Search Tree

This C program implements search in Binary search tree. This is the data structure where inorder traversal of the binary search tree leads to sorting of elements. Here is the source code of the C program to search element in Binary search tree. The C program is successfully compiled and run on a Linux system. … Read more

advertisement

C Program to Perform Binary Search Tree Operations

This C program searches an element in a Binary Search Tree. In computer science, a binary search tree (BST), sometimes also called an ordered or sorted binary tree, is a node based binary tree data structure where each node has a comparable key (and an associated value) and satisfies the restriction that the key in … Read more

advertisement

C Program to Implement External Sorting using B Tree and Inorder Traversal

This C program sorts integers using Inorder traversal in a B tree. Here is the source code of the C program to display sorted list using B tree sort. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C program to Implement external sorting … Read more

advertisement

C Program to Implement Binary Search Tree

Problem Description Write a C program to implement the Binary Search Tree operations and display its traversals. Outline of a Binary Search Tree: What is a Tree? What is a Binary Tree? What is a Binary Search Tree? Doubly Linked List Representation of a BST Node Implementation of Binary Search Tree (Program/Code) Binary Search Tree … Read more

advertisement

C Program to Create a Mirror Copy of a Tree

This C Program Creates Mirror Copy of a Tree. Here is source code of the C Program to Create a Mirror Copy of a Tree. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /*  * C Program to Create a Mirror Copy of a … Read more

advertisement

C Program to Search a Node in Binary Tree

This C Program search for a particular value in a binary tree. Here is source code of the C Program to search for a particular value in a binary tree. 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 Find the Sum of All Nodes in a Binary Tree

This is a C Program to find the sum of all the nodes present in a Binary Tree using recursion. Problem Description We have to write a C program which will find the sum of all the nodes in a Binary Tree. Expected Input and Output Case 1. Balanced Tree:When the weight is equal on … Read more

advertisement

C Program to Find the Common Ancestor and Path

This C Program Finds the Common Ancestor and Print the Path. Here is source code of the C Program to Find the Common Ancestor and Print the Path. The C program is successfully compiled and run on a Linux system. The program output is also shown below. /* * C Program to Find the Common Ancestor … 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.