I have data of different items in a different restaurants
Rest Item Price
----------------------
ABC dosa 14
ABC idly 30
ABC idly+upma 25
123 dosa 30
123 idly 7
123 upma 12
XYZ dosa 20
XYZ idly 12
XYZ upma 20
XYZ dosa+upma 30
XYZ dosa+idly+upma 40
Now I need to pickup a restaurant which gives me the best deal of "dosa+idly+upma" items.
From the above example: it will be restaurant "ABC"
I am unable to design efficient way of doing this or not getting idea on how to do? Any idea?
Update
Here how my objects look like
Class Rest{
Map<String,Integer> menu; //item,price map
}
See Question&Answers more detail:os