Skip to content

Sana-Kausar/ZigZag-Level-Order-Traversal-Binary-Tree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

ZigZag-Level-Order-Traversal-Binary-Tree

Problem Description Given a binary tree, return the zigzag level order traversal of its nodes values. (ie, from left to right, then right to left for the next level and alternate between).

Problem Constraints 1 <= number of nodes <= 105

Input Format First and only argument is root node of the binary tree, A.

Output Format Return a 2D integer array denoting the zigzag level order traversal of the given binary tree.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages