### Tree Data Structure

2021

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. […]

### JavaScript DOM tree

2021

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” […]

### Paint the edges of the tree

2021

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 […]

### Java Program to Delete a Particular Node in a Tree Without Using Recursion

2021

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 […]

### Java Program to Print only Odd Numbered Levels of a Tree

2021

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 […]

### Java Program to Check if a Directed Graph is a Tree or Not Using DFS

2021

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 […]

### Java Program to Create the Prufer Code for a Tree

2021

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 […]

2020

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 […]

### Random Function and Tree

2020

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 […]

### New Year Tree

2020

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 […]

### Tree and XOR

2020

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 […]