---
title: "Comment by Manish askani on \"Crushing Tech Interviews with the Two Heaps Pattern\" | Hashnode"
description: "Hey Sloth Nice article. A small correction. We can insert into the max heap if the top element (i.e. the greatest element) is smaller than the element we&#39;re"
url: "https://hashnode.com/posts/crushing-tech-interviews-with-the-two-heaps-pattern/60770ac34155da32fc83ab77/comment/610702863b9b85399dcf5200"
---

[Discussion](https://hashnode.com/posts/crushing-tech-interviews-with-the-two-heaps-pattern/60770ac34155da32fc83ab77)

Comment [Crushing Tech Interviews with the Two Heaps Pattern](https://hashnode.com/posts/crushing-tech-interviews-with-the-two-heaps-pattern/60770ac34155da32fc83ab77)

[Manish askani](https://hashnode.com/@manishaskani)

[Aug 1, 2021](https://hashnode.com/posts/crushing-tech-interviews-with-the-two-heaps-pattern/60770ac34155da32fc83ab77/comment/610702863b9b85399dcf5200)

Hey [Sloth](https://hashnode.com/@TechSloth) Nice article. A small correction. `We can insert into the max heap if the top element (i.e. the greatest element) is smaller than the element we're inserting` I think this is incorrect. We should insert into max heap if the inserting element is smaller than the top element of heap and not the other way round.
