---
title: "Discussion on \"Binary Tree Zigzag Level Order Traversal\" | Hashnode"
description: "Discussion on \"Binary Tree Zigzag Level Order Traversal\". Problem\nGiven the root of a binary tree, return the zigzag level order traversal of its nodes' values. (i.e., from left to right, then right to left for the next level and alternate between). (link)\nExample 1:\n\nInput: root = [3,9,20,null,null,15,7]\nO..."
url: "https://hashnode.com/posts/binary-tree-zigzag-level-order-traversal/67dff75ec9659a25f0ec8892"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Binary Tree Zigzag Level Order Traversal](https://chetan77.hashnode.dev/binary-tree-zigzag-level-order-traversal?utm_source=hashnode&utm_medium=feed)

Problem Given the root of a binary tree, return the zigzag level order traversal of its nodes' values. (i.e., from left to right, then right to left for the next level and alternate between). (link) Example 1: Input: root = \[3,9,20,null,null,15,7\] O...

Mar 23, 2025 · 2 min read · chetan77.hashnode.dev  
Read the article

-   [#bfs](https://hashnode.com/tag/bfs)
-   [#binarytrees](https://hashnode.com/tag/binarytrees)
-   [#dsa](https://hashnode.com/tag/dsa)
-   [#zigzag](https://hashnode.com/tag/zigzag)
-   [#treetraversals](https://hashnode.com/tag/treetraversals)

## Written by

[Chetan Datta](https://hashnode.com/@chetan77)

@chetan77 · Hyderabad, India

  
[View profile](https://hashnode.com/@chetan77)

Software Engineer

I share my learnings here. Thanks for reading.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
