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

 

feb5_2016_APSLHL_longerBy


Write a method that returns the difference between the lengths of the two input parameter arrays. For example, if one of the arrays has a length of 8 and the other array has a length of 3, you would return 5 since that is the difference in their lengths. Note that either the first or second array could be longer.


feb5_2016_APSLHL_longerBy([1, 5, 2, 8, 3, 1, 2, 5, 4], [3, 9]) → 7
feb5_2016_APSLHL_longerBy([12], [5, 9, 1, 4]) → 3
feb5_2016_APSLHL_longerBy([1, 2], [1, 5]) → 0

...Save, Compile, Run (ctrl-enter)

public int feb5_2016_APSLHL_longerBy(int[] nums1, int[] nums2) { }

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: 290

Copyright Nick Parlante 2017 - privacy