OpenGenus / cosmos

World's largest Contributor driven code dataset | Used in Quark Search Engine, @OpenGenus IQ, OpenGenus Visual Project
http://internship.opengenus.org
GNU General Public License v3.0
13.55k stars 3.67k forks source link

Add fractional knapsack #797

Open AdiChat opened 6 years ago

AdiChat commented 6 years ago

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.

nathan-castlehow commented 6 years ago

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?

Raghav17 commented 6 years ago

Hi, I want to do a C implementation, is it alright?

visheshdembla commented 6 years ago

Doing it in java.

visheshdembla commented 6 years ago

818 Added Java implementation

amartyaamp commented 6 years ago

Will add the python code for this.

amartyaamp commented 6 years ago

823 Added for Python implementation.

AdiChat commented 6 years ago

Sure @nathan-castlehow @Raghav17 Go for it 👍