menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Programming News

>

Spiral ord...
source image

Prodevelopertutorial

1M

read

325

img
dot

Image Credit: Prodevelopertutorial

Spiral order or Zigzag traversal of a Binary Tree

  • Spiral order or zigzag traversal of a binary tree
  • The solution involves using 2 stacks
  • Nodes are pushed and popped alternately in the stacks
  • The final output is the nodes visited in spiral order

Read Full Article

like

19 Likes

For uninterrupted reading, download the app