Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added C++ implementation of the 0/1 Knapsack #140

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DiptanshuG
Copy link

Hi there,

I hope you're doing well! I wanted to participate in Hacktoberfest and contribute to your repository. I've added a C++ implementation of the Knapsack Problem, which I believe could be a valuable addition to your project.

Contribution Summary:

  • Added a C++ implementation of the Knapsack Problem.
  • Included a knapsack function for solving the problem.
  • Provided a sample use case in the main function.

You can review the code and test it by running the provided sample in the main function.

Link to Issue (if applicable):
(Insert link to any relevant issue if you discussed this contribution in an issue)

Motivation:
The Knapsack Problem is a classic optimization problem, and having a ready-made implementation can be beneficial for developers looking to solve similar problems. This addition can be a helpful resource for the community using your repository.

Test and Verification:
I've tested the code to ensure it works as expected. It correctly calculates the maximum value within the given knapsack capacity.

Request for Review:
I kindly request you to review this pull request at your earliest convenience. Any feedback or suggestions for improvement are highly appreciated.

Thank you for considering my contribution! I look forward to hearing your thoughts on this.

Best regards,
Diptanshu Bhawsar

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.

None yet

1 participant