Skip to content

Refactor Heap functions (heap code in dsa2/assignment5/logic.c) : improved readability, added comments, and minor bug fixes.#2

Open
krishna-warfade wants to merge 4 commits into
prathampt:mainfrom
krishna-warfade:main
Open

Conversation

@krishna-warfade
Copy link
Copy Markdown

@krishna-warfade krishna-warfade commented Nov 4, 2025

  • Grouped related functions (max heap & min heap separately) : for better readability.
  • Renamed confusing function insetMax to insertMax and insetMin to insertMin.
  • Added comments for clarity.
  • Removed redundant returns : reverting this change as it's a good habit to write "return" at the end of a function.
  • Rearranged codes by creating separate folders.

…nor bug fixes

- Grouped related functions (max heap & min heap separately)
- Renamed confusing function insetMax to insertMax and insetMin to insertMin
- Added comments for clarity
- Removed redundant returns
Copy link
Copy Markdown
Owner

@prathampt prathampt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please give reasons for your changes.

Comment thread dsa2/assignment5/logic.c
Comment thread dsa2/assignment5/logic.c
Comment thread dsa2/assignment5/logic.c
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.

2 participants