added C++ implementation of the 0/1 Knapsack #140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
knapsack
function for solving the problem.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