educative.io

Max Heap having -ve ints

Why does the diagram “Optimized Approach” show the max heap data members with a -ve sign example -22, -30 …
The actual code doesnt do so in this way. The Max heap gets data elements as they are.


Course: https://www.educative.io/courses/grokking-coding-interview-patterns-go
Lesson: https://www.educative.io/courses/grokking-coding-interview-patterns-go/m7rrL8koWYA

Hello @Abhay,

Thank you for the feedback. We are in the process of making changes to the slide deck and as per your query, yes this was an oversight that got missed during the slide deck creation.

We’ll let you know once the updated version is live. Thanks.