[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Program Discussion :: Basics

Home > Programs > Basics

112 / 279

Write a Program to print a binary tree in Zig Zag way.
OR
Print the Binary Tree in Zig Zag Level-Order.
Input:
.................(25)
......... (4)...........(10)
.....(2)......(8)...(12)......(7)

OutPut: 25,10, 4, 2, 8, 12, 7

Answer:


Asked In :: Amazon

Post Your Answer Here: