---
title: "Discussion on \"What is Heap\" | Hashnode"
description: "Discussion on \"What is Heap\". There are two types of heaps. Min heap and max heap. Height of a heap is O(log n)\nMax Heap\n\n\nMax heap is used for heapsort.\n\nValue of i <= Value of parent\n\nCan be represented as this array : [21, 17, 15, 14, 9, 12, 13, 8, 5, 1]\n\nRoot of the tree is a..."
url: "https://hashnode.com/posts/what-is-heap/680dd0b645d4d6f633f2457e"
---

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

Discussion

# [What is Heap](https://khushaalan.hashnode.dev/what-is-heap?utm_source=hashnode&utm_medium=feed)

There are two types of heaps. Min heap and max heap. Height of a heap is O(log n) Max Heap Max heap is used for heapsort. Value of i <= Value of parent Can be represented as this array : \[21, 17, 15, 14, 9, 12, 13, 8, 5, 1\] Root of the tree is a...

Apr 27, 2025 · 1 min read · khushaalan.hashnode.dev  
Read the article

-   [#heap](https://hashnode.com/tag/heap)

## Written by

[khushaalan](https://hashnode.com/@khushaalan)

@khushaalan · San Francisco

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

Software Dev

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
