Numerical reasoning - lowest price

Camillia used Ask the Experts™
How do I go about this?

5 liters but they come in 4 packages --> $11.95 - $2.49 to give me 4 packages out of 5 .. not sure if I'm on the right track

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
You have to get 5 liters while spending the least money.

You have to check  the prices of [5]  [3+2]  [2+2+1]  [3+1+1]  and so on.

One way to approach the problem is to look for the best price per liter:  $2.49/1   $4.68/2  etc.
Most Valuable Expert 2013
Look at all the possible combinations of bottle sizes that you can combine to make 5 litres.

Do it in a logical order so you don't miss any possible combinations

Add the prices of each combination until you find the best deal.

You might only save $0.10 but you will find a winning price!
ah, now I know what the question is asking for.
PMI ACP® Project Management

Prepare for the PMI Agile Certified Practitioner (PMI-ACP)® exam, which formally recognizes your knowledge of agile principles and your skill with agile techniques.

For timed tests, or just to get through these problems, look for ways to eliminate some of the possible combinations.
For example, ask:
Can we replace (1,1) with (2). Answer: NO, because (1,1) ~ $5.00, whereas (2) = 4.68 < $5.00.
This means we can always eliminate any combination that has (1,1) in it since we automatically know that (2) is a lower cost choice.
Should we include (3) in our choice?
Since (1,2) == (3) in volume; but the cost of (1,2) = $2.49 + $4.68 = $7.17, whereas (3) cost is $7.32, you can always remove (3) from your consideration by simply replacing it with (1,2) since $7.17 < $7.32.
$11.85 :)
Right. By eliminating the (3) and (1,1), you quickly get to (2,2,1) --> $11.85
In fact, you have also eliminated 5.  So you have the solution for any integer.
Going to get a numerical reasoning book after I get an offer. I'm close to an offer from a place I interviewed with today. Good to keep practicing.
To keep practicing, extend this problem to have, say, 10 kinds of packages and ask yourself how can you methodically eliminate packages as done in earlier posts. By generalizing a simpler problem to the same kind of problem, but with more items, you start seeing algorithmic patterns that become part of your toolbox.

Good luck in getting your better job!
Good luck in getting your better job!


Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial