about | help | code help+videos | done | prefs |
socialSum
Given 3 input integers, return the sum of all 3 if none is equal to each other. If exactly two are equal, return the third number. If all three are equal, return -1. socialSum(1, 2, 3) → 6 socialSum(1, 2, 2) → 1 socialSum(4, 4, 4) → -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
Difficulty: 100
Copyright Nick Parlante 2017 - privacy