cosmos icon indicating copy to clipboard operation
cosmos copied to clipboard

Add fractional knapsack

Open AdiChat opened this issue 9 years ago • 7 comments

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.

AdiChat avatar Oct 06 '17 22:10 AdiChat

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?

nathan-castlehow avatar Oct 07 '17 03:10 nathan-castlehow

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

Raghav17 avatar Oct 07 '17 05:10 Raghav17

Doing it in java.

visheshdembla avatar Oct 07 '17 06:10 visheshdembla

#818 Added Java implementation

visheshdembla avatar Oct 07 '17 07:10 visheshdembla

Will add the python code for this.

amartyaamp avatar Oct 07 '17 07:10 amartyaamp

#823 Added for Python implementation.

amartyaamp avatar Oct 07 '17 08:10 amartyaamp

Sure @nathan-castlehow @Raghav17 Go for it 👍

AdiChat avatar Oct 07 '17 10:10 AdiChat