about | help | code help+videos | done | prefs |
Two strings will be passed in. Either string may be longer than the other one, or they could both be the same length. Return the difference in their lengths. For example, if the first string has 20 characters, but the second string has 27 characters, return 7 because that is the difference in their lengths. nov9_2015_APSLHL_longerBy("adslkfjdwei", "afdas") → 6 nov9_2015_APSLHL_longerBy("", "xyz") → 3 nov9_2015_APSLHL_longerBy("short", "much longer string") → 13 ...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