menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Find Sibli...
source image

Prodevelopertutorial

1w

read

380

img
dot

Image Credit: Prodevelopertutorial

Find Sibling node of a given node value in Binary Tree

  • Given a binary tree root node and a node value, get the sibling of that node.
  • If the input node value is 10, its sibling is 25
  • If the input node value is 7, its sibling is 15
  • If the input node value is 16, its sibling is NULL

Read Full Article

like

22 Likes

For uninterrupted reading, download the app