about | help | code help+videos | done | prefs |
Given three integers, a b c, return their sum. However, if one of their values is the same as another, do not count either of them towards the sum! Return zero if they are all the same value! logic_sumNoDuplicates3(1, 2, 3) → 6 logic_sumNoDuplicates3(1, 2, 1) → 2 logic_sumNoDuplicates3(2, 1, 2) → 1 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Copyright Nick Parlante 2017 - privacy