akshitagit / akshitagit/Python

Slightly modified Knapsack problem.

オープン
#109 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
algorithms datastructures DSA good first issue hacktoberfest hacktoberfest2020 hactoberfest
主要言語
Python
スター
124
フォーク
109
PR マージ指標
30日以内にマージされた PR はありません

説明

You have to choose some of the N items. Your knapsack has a capacity of W which means that the sum of the weights of items taken must be at most W. Item i has a weight of Wi and a value of Vi. Find the maximum possible sum of the values of items that you can home.
The twist here being that the constraints for W is 1<=W<=1e9. 1<=Vi<=1e3.

Found this to be a very interesting variation of the popular knapsack problem and would love to contribute under hacktoberfest. Can this be assigned to me?

P.S : Code in Python.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。