Additional

Easy Adjacency Matrix Representation of Graph

Adjacency Matrix Code Adjacency matrix code using C is a way to represent a graph as a 2D array. The array is of size V x V, where V is the number of vertices in the graph. If there is an edge from vertex i to vertex j, then the entry adj[i][j] is set to …

Easy Adjacency Matrix Representation of Graph Read More »

Easy Adjacency List Representation of Graph

Adjacency List Code Adjacency List is one of the best way of representing a graph through computer code. In this code, connection in between two adjacent nodes is represented in the adjacency list. This adjacency list is represented using Linked List and one linked list is created for each node\’s adjacent node connection and representation. …

Easy Adjacency List Representation of Graph Read More »

Easy Josephus problem solution using Circular Linked List

Josephus Problem Solution Code This code is for implementing Josephus Problem using Circular Linked List. Actually Josephus problem is a concept of deleting node on counter basis. If you take a counter of 3 for performing this problem then it will start by deleting the 3rd node starting from the head node, then and after …

Easy Josephus problem solution using Circular Linked List Read More »

Easy AVL Tree Explanation

AVL Tree Introduction to AVL Tree : AVL trees are a self-balancing binary search tree data structure that helps maintain the height balance of the tree. They were named after their inventors, Adelson-Velsky and Landis, and are particularly useful for optimising search, insertion, and deletion operations. In this guide, we\’ll explore AVL trees, provide an …

Easy AVL Tree Explanation Read More »

Easy Mirror Image Construct of Binary Search Tree

Mirror Image Construct of Binary Search Tree This code is for showing Mirror Image construct and Level Order Traversal of a Binary search tree. In this code first the tree is created as per the position of the nodes. As we all know in Binary Search Tree, Left child contain lesser value than parent and …

Easy Mirror Image Construct of Binary Search Tree Read More »

Easy Level Order Traversal of Binary Tree Code

Level Order Traversal of Binary Tree Code This code is for showing Level Order Traversal of a Binary tree creation using queue. In this code first created node will be treated as root node. After that another function insert() will be called for adding the child nodes. Every time one node created and sent to …

Easy Level Order Traversal of Binary Tree Code Read More »

Easy Binary Search Tree Code

Binary Search Tree Creation Code This code is for Binary search tree creation. As we know in Binary Search Tree left sub tree will contain lesser value than the parent and right sub tree will contain greater value than the parent. So in this code nodes are inserted on the basis of there position. After …

Easy Binary Search Tree Code Read More »

Easy Circular Queue using Linked List code

Code for implementing Circular Queue using LinkedĀ  List For learning pointer, dynamic memory allocation, linked list, you should go through this code. This is Code for implementing Circular Queue using Linked List. In C code practice, this Code for implementing Circular Queue using Linked List logic plays a very important role. So I have designed …

Easy Circular Queue using Linked List code Read More »

Easy Binary Tree Creation using Stack code

Binary Tree Creation using Stack code This code is for Binary tree creation using stack. In this code first created node will be treated as root node. After that another function insert() will be called for adding the child nodes. Every time one node created and sent to stack for keeping track of that node. …

Easy Binary Tree Creation using Stack code Read More »

Easy Binary Tree Creation using Queue code

Binary Tree Creation using Queue code This code is for Binary tree creation using queue. In this code first created node will be treated as root node. After that another function insert() will be called for adding the child nodes. Every time one node created and sent to queue for keeping track of that node. …

Easy Binary Tree Creation using Queue code Read More »