All root-to-leaf paths of a Binary tree

Write a program to find all root to leaf paths of a Binary tree. A tree has different paths from …

Diameter of a Binary tree

The diameter of a tree is the number of nodes on the longest path between two leaves in the tree …

C program to find square root of a number

C program to find the square root of a number. Write a C program to enter the number and calculate …

C program to find power of a number

C program to find the power of a number. Write a C program to enter the base and exponents and …

C program to convert fahrenheit to celsius

Write a C program to convert fahrenheit to celsius. C program to enter the temperature in fahrenheit and convert it …

C program to convert celsius to fahrenheit

Write a C program to convert celsius to fahrenheit. C program to enter the temperature in celcius and convert it …

C Program to find diameter, circumference and area of a circle

Write a C program to enter the radius of a rectangle and find the diameter, circumference and area of a …

C program to find area of a rectangle

Write a C program to enter the length and breadth of a rectangle and find its area using operators and …

C program to find perimeter of a rectangle

Write a C program to enter the length and breadth of a rectangle and find its perimeter using operators and …

C program to perform all arithmetic operations

Write a C program to enter two numbers and perform all arithmetic operations like addition, subtraction etc to understand how …

C program to find sum of two numbers

Write a C program to enter two numbers and find their sum by using the scanf function.

Maximum level sum in a binary tree

Write a program to find the maximum level sum in a binary tree even if nodes may have negative values …

Compare structure and data of two binary trees

Write a program to compare the structure data of two binary trees and if they are identical then return true …

Compare structure of two binary trees

Write a program to compare the structure of two binary trees without data and if they are identical then return …

Walrus operator in Python

Walrus operator (:=) is used as an assignment operator. It assigns value to a variable and also returns the value. It …

Number of half nodes in a binary tree

Those nodes in the tree which have only one child are known as half nodes i.e., A node is …

Number of full nodes in a binary tree

Those nodes in the tree which have both the children are known as full nodes i.e., A node is …

Number of leaf nodes in a binary tree

Those nodes in the tree which don't have any child are known as leaf nodes i.e., A node …

Deepest node in a binary tree

The rightmost node among the leaf nodes is known as the deepest node in a binary tree. Find the deepest …

JWT token as HttpOnly cookie in Django

It is always recommended to store tokens for authentication as HttpOnly cookie instead of storing them in localStorage or as …