Add fractional knapsack
Add the code for fractional knapsack in any language ( C, Java, Go, Python, JavaScript or any other)
The code should be placed at code/greedy algorithms/fractional knapsack
Sample C++ implementation: see
Read about it on Wikipedia: here
Note: multiple contributors can work on this issue as it has multiple parts (languages)
Your pull request will be reviewed by maintainers instantly.
For contribution guidelines, see this
If you need any help, let us know.
Hey looking at doing a c# one now, going to copy paste comments etc from the cpp one and make it almost identical. Is that cool?
Hi, I want to do a C implementation, is it alright?
Doing it in java.
#818 Added Java implementation
Will add the python code for this.
#823 Added for Python implementation.
Sure @nathan-castlehow @Raghav17 Go for it 👍