唉!是不是到头了!# Love - 情爱幽幽
t*e
1 楼
最近遇到的一道题,用java实现,结果要是在单个class内,还要有test case验证,有
人知道么?
题目: Given a set of retrofitting options (String name, double cost, double
benefit), and a budget, produce the highest benefit subset whose total cost
fits within the budget. Repeat this exercise, given a set of mutual
exclusivity constraints (i.e. measure X and measure Y cannot be used
together)
人知道么?
题目: Given a set of retrofitting options (String name, double cost, double
benefit), and a budget, produce the highest benefit subset whose total cost
fits within the budget. Repeat this exercise, given a set of mutual
exclusivity constraints (i.e. measure X and measure Y cannot be used
together)