id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

abraskin@mbusd.org > highSum
prev  |  next  |  chance

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)

public int highSum(int[] arr1, int[] arr2) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 350 Post-solution available

Copyright Nick Parlante 2017 - privacy