#440 Summing Money by Currency

Companies:
MoySklad
Themes:
JavaCollections & GenericsPractice

Sum the values from the lists by currency:

class Money {
    String currency;
    BigDecimal value;
}
private static Set<Money> mergeLists(List<Money> list1, List<Money> list2) {
    return;
}

Question review

Mentor
Answer as you would in a real interview. I’ll ask follow-up questions, then compare your answer with the reference answer and show your accuracy as a %.
Sign in to start the dialogue The mentor keeps the context of the current question and your previous messages.
Sign in