---
title: "Discussion on \"Left and Right view of a Binary Tree\" | Hashnode"
description: "Discussion on \"Left and Right view of a Binary Tree\". Given a Binary Tree, you need to print the Left view and right view of a Binary Tree. \nLevel Order input for the Binary Tree is given.\n1. Left View\nsample input: 1 2 3 4 5 -1 6 -1 -1 -1 -1 -1 -1 \nsample output: 1 2 4 \nThe tree looks like:\n           ..."
url: "https://hashnode.com/posts/left-right-view-binary-tree/60257087c6d91052dafe8da2"
---

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

Discussion

# [Left and Right view of a Binary Tree](https://vineethm.hashnode.dev/left-right-view-binary-tree?utm_source=hashnode&utm_medium=feed)

Given a Binary Tree, you need to print the Left view and right view of a Binary Tree. Level Order input for the Binary Tree is given. 1. Left View sample input: 1 2 3 4 5 -1 6 -1 -1 -1 -1 -1 -1 sample output: 1 2 4 The tree looks like: ...

Feb 11, 2021 · 5 min read · vineethm.hashnode.dev  
Updated Feb 13, 2021  
Read the article

-   [#cpp](https://hashnode.com/tag/cpp)
-   [#algorithms](https://hashnode.com/tag/algorithms)
-   [#data-structures](https://hashnode.com/tag/data-structures)
-   [#competitive-programming](https://hashnode.com/tag/competitive-programming)

## Written by

[M.Vineeth](https://hashnode.com/@vineethm1627)

@vineethm1627 · India

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

Data Structures and Algorithms 💯

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
