greedy florist hackerrank in java #hackerrank





Greedy Florist greedy algorithm implementation in Java

Greedy Florist from hackerrank. this is another greedy algorithm implementation. A group of friends want to buy a bouquet of flowers. The florist wants to maximize his number of new customers and the money he makes. To do this, he decides he'll multiply the price of each flower by the number of that customer's previously purchased flowers plus . The first flower will be original price(0+1)*original price, , the next will be (1+1)*original price and so on.


Comments

Popular posts from this blog