plduhoux
2/23/2018 - 11:52 PM

calculationsWithCoins

int calculationsWithCoins(int a, int b, int c) {
    Set<Integer> res = new HashSet<>();
    res.add(a+b);
    res.add(a+c);
    res.add(b+c);
    res.add(a);
    res.add(b);
    res.add(c);
    res.add(a+b+c);
    return res.size();
}