### Tree Data Structure

In this tutorial, you will learn about tree data structure. Also, you will learn about different types of trees and the terminologies used in tree. […]

In this tutorial, you will learn about tree data structure. Also, you will learn about different types of trees and the terminologies used in tree. […]

The backbone of an HTML document is tags. According to the Document Object Model (DOM), every HTML tag is an object. Nested tags are “children” […]

This is a fairly common task. Given a tree $G$ with $N$ vertices. There are two types of queries: the first one is to paint […]

This is a Java Program to to delete a particular node from the tree without using recursion. Here is the source code of the Java […]

This is a Java Program to implement a Binary Tree and print the level order traversal of the same, such that only odd levels are […]

This is a java program to check if graph is tree or not. Graph is tree if,1. It has number of edges one less than […]

This is a java program to create Prufer code for a tree. In combinatorial mathematics, the Prüfer sequence (also Prüfer code or Prüfer numbers) of […]

When Adam gets a rooted tree (connected non-directed graph without cycles), he immediately starts coloring it. More formally, he assigns a color to each edge […]

You have a rooted tree consisting of n vertices. Let’s number them with integers from 1 to n inclusive. The root of the tree is the vertex 1. For each i > 1 direct parent of […]

The New Year holidays are over, but Resha doesn’t want to throw away the New Year tree. He invited his best friends Kerim and Gural […]

You are given a connected undirected graph without cycles (that is, a tree) of $n$ vertices, moreover, there is a non-negative integer written on every […]