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