Skip to content

feat(heaps): extend heap visualizer and logic to support both min and max heap#2

Open
mhdnihas wants to merge 2 commits intoWeCode-Community-Dev:mainfrom
mhdnihas:dev_nihas/min-heap-visualizer
Open

feat(heaps): extend heap visualizer and logic to support both min and max heap#2
mhdnihas wants to merge 2 commits intoWeCode-Community-Dev:mainfrom
mhdnihas:dev_nihas/min-heap-visualizer

Conversation

@mhdnihas
Copy link

@mhdnihas mhdnihas commented Jan 1, 2026

Changes

  • Added a Heap Type selector, The selector allows users to choose between “Max Heap” and “Min Heap”.
  • The heap visualization dynamically updates to display the current heap type, and inserted values now reflect the chosen heap type.

Before

  • Only Max Heap was shown
  • No option to switch heap type
Screenshot 2026-01-08 at 5 28 24 PM

After

  • Dropdown is visible under Heaps tab
  • Users can toggle between both heap types
  • Visualization updates accordingly
Screenshot 2026-01-08 at 5 27 44 PM

@mhdnihas mhdnihas changed the title feat(heaps): extend heap visualizer and logic to support both min and… feat(heaps): extend heap visualizer and logic to support both min and max heap Jan 4, 2026
@mhdnihas mhdnihas force-pushed the dev_nihas/min-heap-visualizer branch from b24aa94 to 6c017f1 Compare January 8, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant