Skip to content

Conversation

@kinngddx
Copy link

Have you read the Contributing Guidelines on Pull Requests?

Yes ✅

Description

Added a new folder C-Plus-Plus/greedy/ containing implementations of popular Greedy Algorithm problems in C++.
Each program is optimized, well-commented, and follows NeoAlgo’s contribution format.

📂 Problems Added

  1. Activity Selection – Find maximum number of non-overlapping activities
  2. Fractional Knapsack – Maximize total value using fractional items
  3. Job Sequencing – Schedule jobs to maximize profit within deadlines
  4. Huffman Encoding – Generate prefix codes based on character frequencies

Also updated the main C-Plus-Plus/README.md to include a link to this new folder.

Checklist

  • I've read the contribution guidelines.
  • I've checked the issue list before deciding what to submit.
  • I've added my code in the correct folder (C-Plus-Plus/greedy/).
  • I've edited the README.md and linked my code.
  • My code is well-commented and runs without errors.
  • I’ve ensured no plagiarism — all solutions are original.

Related Issues or Pull Requests

Fixes # (add your issue number here if you created one)

@github-actions
Copy link

Please reopen this pull request once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to seek help from our Discord or ping one of the reviewers. Thank you for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant