menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Get Averag...
source image

Prodevelopertutorial

1w

read

338

img
dot

Image Credit: Prodevelopertutorial

Get Average of all nodes in Binary Tree

  • The sum of all the nodes is 121
  • Total number of nodes are: 7
  • So the average is 121/7 = 17.2
  • Output: The average is 17

Read Full Article

like

20 Likes

For uninterrupted reading, download the app