TheAlgorithms / C-Plus-Plus

Collection of various algorithms in mathematics, machine learning, computer science and physics implemented in C++ for educational purposes.
https://thealgorithms.github.io/C-Plus-Plus
MIT License
30.79k stars 7.29k forks source link

Create unbounded_knapsack.cpp #2885

Open GeekyPratham opened 3 weeks ago

GeekyPratham commented 3 weeks ago

I am adding all the approaches for solving this problem like top - down and bottom up and it more space optimization.

Description of Change

Checklist

Notes:

GeekyPratham commented 3 weeks ago

If i did mistake in any step please rectify me.