menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Check if b...
source image

Prodevelopertutorial

1M

read

0

img
dot

Image Credit: Prodevelopertutorial

Check if binary tree is a sum tree

  • The tutorial covers how to check if a binary tree is a sum tree or not.
  • A sum tree is a tree where the parent node value is equal to the sum of its left sub tree and right sub tree.
  • The example in the tutorial demonstrates a sum tree and explains the condition that needs to be satisfied for internal nodes.
  • Only leaf nodes do not need to satisfy this condition.

Read Full Article

like

Like

For uninterrupted reading, download the app