about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 290
Copyright Nick Parlante 2017 - privacy