| about | help | code help+videos | done | prefs |
highSum
Given two arrays with at least one element in each, return the sum of the sum of the digits of the array whose digit sum is the highest and -1 if they are equal. highSum([1, 34], [12, 5]) → -1 highSum([1, 2, 3, 4, 5], [12345]) → -1 highSum([32, 52, 42], [2, 22, 67]) → 10 ...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: 350 Post-solution available
Copyright Nick Parlante 2017 - privacy