Fermé

Ruby Knapsack Problem

Create an algorithm to compute the best optimization for a list like this.

[ {"name" => "apple", "weight" => 2, "cost" => "1"}, {"name" => "pear", "weight" => 3, "cost" => "2"}, {"name" => "orange", "weight" => 1, "cost" => "3"}, {"grape" => "apple", "weight" => 4, "cost" => "2"} , ]

Write an algorithm to come up with the best list (highest weight) of 3 items at the cost of 6.

Compétences : Ruby

Voir plus : problem algorithm, cost problem, algorithm problem, bluej zuul create items game class, ruby create xhtml, oracle inventory create items api, ruby create thumbnail video, php ini file resolve problem customers log create account , iphone ruby create window app, create items, hack create items, program create items diablo

Concernant l'employeur :
( 72 commentaires ) Bryan, United States

N° du projet : #8474711

10 freelance ont fait une offre moyenne de 25 $ pour ce travail

colindao

Hi, My name is Colin Let me clear this, in case I am correct, I can solve your problem - So you have array of hash, each hash has 3 pairs of key value like this: {"name" => "apple", "weight" => 2, "cost" => "1"} Plus

30 $ USD en 1 jour
(12 Commentaires)
4.8
palak311

Hi, I have learnt Ruby and Also some hands on experience with Ruby. Need your support Hoping for the response. Thanks Palak

25 $ USD en 2 jours
(0 Commentaires)
0.0
ndrluis

Ruby developer with 3 years of experience in web development with ruby and expertise on functional programming.

30 $ USD en 1 jour
(0 Commentaires)
0.0
stolorz

Hi, I'm a full time developer of C/C++/Java/Ruby etc. I need 60 minutes to write your program. Could you please specify whether this algorithm should be dynamic or brute force and whether the number of items required i Plus

20 $ USD en 0 jours
(0 Commentaires)
0.0
praveenperera

I can quickly get this done for you. I will be done within a few hours, check out my GitHub for some algorithm examples I've done on hackerrank: [url removed, login to view] I Plus

20 $ USD en 1 jour
(0 Commentaires)
0.0
thanhtuan5787

A proposal has not yet been provided

22 $ USD en 3 jours
(0 Commentaires)
0.0
josheme93

I already wrote the algorithm. I'll send it to you once you accept my bid... Here's what it starts like # Create an algorithm to compute the best optimization for a list like this. list = [ {"name" => "apple", " Plus

25 $ USD en 1 jour
(0 Commentaires)
0.0
saravani20

I can do this. I'll create a method that will give you the best list (highest weight) of 3 items at the cost of 6. But the given example, the cost value is not equal to 6. Do you have the sample hash? I have a vast Plus

30 $ USD en 1 jour
(0 Commentaires)
0.0
nickbyman

I have industry experience with Ruby. I have written many programs in Ruby. This is not a difficult program for me to solve.

25 $ USD en 1 jour
(0 Commentaires)
0.0
kinetic87

I have a few years of Ruby programming under my belt. This shouldn't take me more than an hour or so to complete.

20 $ USD en 1 jour
(0 Commentaires)
0.0