Hafeezul Kareem has Published 344 Articles

Diagonal of a Regular Heptagon in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:31:07

100 Views

In this tutorial, we are going to learn how to find the diagonal of a regular heptagon.We have to find the length of the diagonal of the regular heptagon using the given side. The length of the diagonal of a regular heptagon is 1.802 * s where s is the ... Read More

Determine the position of the third person on regular N sided polygon in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:30:25

76 Views

In this tutorial, we are going to learn how to find the position of a third person on a regular N-sided polygon.We have given a regular N-sided polygon. And there are two persons on two different points already. Our task is to find the third point to place the third ... Read More

Determinant of a Matrix in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:27:40

6K+ Views

In this tutorial, we are going to learn how to find the determinant of a matrix.Let's see the steps to find the determinant of a matrix.Initialize the matrix.Write a function to find the determinant of the matrix.If the size of the matrix is 1 or 2, then find the determinant ... Read More

Deserium Number with examples in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:26:05

79 Views

In this tutorial, we are going to learn about the deserium numbers with examples.The number whose sum of pow(digit, digitsCount) is equal to the given number is called Deserium number.Let's see the steps to find whether the given number is deserium number or not.Initialize the number.Find the digits count of ... Read More

Depth of the deepest odd level node in Binary Tree in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:24:53

71 Views

In this tutorial, we are going to learn how to find the deepest odd level node in a binary tree.This is similar to finding the depth of the binary tree. Here, we have to one more condition i.e.., whether the current level is odd or not.Let's see the steps to ... Read More

Depth of an N-Ary tree in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:22:15

845 Views

In this tutorial, we are going to learn how to find the depth of the n-ary tree.An n-ary tree is a tree in which each node of the tree has no more than n child nodes.We have to find the depth of the n-ary tree. We will be using the ... Read More

Density of Binary Tree in One Traversal in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:20:55

213 Views

In this tutorial, we are going to learn how to find the density of the binary tree in a single traversal.The density of the binary tree is obtained by dividing the size of the tree by the height of the tree.The size of the binary tree is the total number ... Read More

Demlo number, Square of 11...1 in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:19:32

126 Views

In this tutorial, we are going to learn about the demlo number.The demlo numbers are the squares of the number 1, 11, 111, 1111, etc.., We can easily find the demlo number as it is in the form 1 2 3 4 5 ... n-2 n-1 n n-1 n-2 ... ... Read More

Deletions of “01” or “10” in binary string to make it free from “01” or “10” in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:15:32

172 Views

In this tutorial, we are going to write a program that finds the total number of pairs (01 or 10) to free the binary string from the pairs (01 and 10). Let's see an example.Input − 101010001Output − 4In the above example, we have to delete a total of 4 ... Read More

Deletion in a Binary Tree in C++ Program

Hafeezul Kareem

Hafeezul Kareem

Updated on 27-Jan-2021 12:14:23

5K+ Views

In this tutorial, we are going to learn how to delete a node in a binary tree.The nodes in a binary tree don't follow any order like binary search trees. So, how to arrange the nodes after deleting a node in a binary tree?Well, we will replace the deepest node ... Read More

Advertisements