Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Sep 7, 2025. It is now read-only.

Update heapsort.c#450

Open
Raja-Muhammad-Bilal-Arshad wants to merge 1 commit intoAllAlgorithms:master from
Raja-Muhammad-Bilal-Arshad:patch-1
Open

Update heapsort.c #450
Raja-Muhammad-Bilal-Arshad wants to merge 1 commit intoAllAlgorithms:master from
Raja-Muhammad-Bilal-Arshad:patch-1

Conversation

@Raja-Muhammad-Bilal-Arshad
Copy link

@Raja-Muhammad-Bilal-Arshad Raja-Muhammad-Bilal-Arshad commented Oct 19, 2024

Making the code a bit more efficient and convenient...

I am creating a pull request for...

Error that could cause abnormality...

Summary of Changes

  1. Input validation: added a check for the maximum number of elements.
  2. Heapify Logic: Correct the logic to ensure safe access to array elements.
  3. Output formatting: improved the clarity of output messages.

A bit more Efficient and convenient...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /