---
title: "Discussion on \"Top and Bottom view of a Binary Tree\" | Hashnode"
description: "Discussion on \"Top and Bottom view of a Binary Tree\". Given a Binary Tree you need to print the top view and bottom view of the Binary Tree. Level order input for the Binary Tree is given.\n1. Top view\nsample input: 1 2 3 4 5 6 -1 -1 -1 -1 -1 -1 -1 \nsample output: 4 2 1 3 \nThe tree looks like:\n          ..."
url: "https://hashnode.com/posts/top-bottom-view-binary-tree/602817864f6b4462941e0a95"
---

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

Discussion

# [Top and Bottom view of a Binary Tree](https://vineethm.hashnode.dev/top-bottom-view-binary-tree?utm_source=hashnode&utm_medium=feed)

Given a Binary Tree you need to print the top view and bottom view of the Binary Tree. Level order input for the Binary Tree is given. 1. Top view sample input: 1 2 3 4 5 6 -1 -1 -1 -1 -1 -1 -1 sample output: 4 2 1 3 The tree looks like: ...

Feb 13, 2021 · 8 min read · vineethm.hashnode.dev  
Read the article

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

## 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.
