Posts by **Yatharth Jain**

**Author Biographical Info: **Not available

The problem in hand is checking whether a given binary tree is perfect or not. So, before talking about Perfect binary tress let us first talk about binary trees. A binary tree is .... Read More

In this Python programming tutorial, we will learn how to implement a multistage graph in Python (Shortest Path). A multistage graph is a special type of graph. In this type of gra.... Read More

Heap is a binary tree data structure. In this type of data structure, the value at the root node is compared to the value of its children. This comparison gives rise to two differe.... Read More

Clean up actions are those statements within a program that are always executed. These statements are executed even if there is an error in the program. If we have used exception h.... Read More

In this tutorial, we will learn how to create a Python program that will automatically open an URL or webpage at a specific given time on our browser. We all know how the alarm wor.... Read More

The problem in hand is to find the longest possible route in a matrix with hurdles using Python code. Let’s break the information that we have and that we need to find: A R x.... Read More

A line contains an infinite number of points on its surface. Hence, if we are given a set point then there is a huge possibility of more than 1 point lying on the same line. So t.... Read More

The problem is that given a binary tree we need to print all the elements diagonally. A binary tree is a type of tree with each internal node has at most two children, one left and.... Read More