about | help | code help+videos | done | prefs |
Given two strings, return the positive difference in the length of the two strings. We will call this the lenDiff. For example the lenDiff between "whatcha doin" and "sup" is 9 because the longer string has nine MORE characters than the shorter one. The strings will be given in any order of length. lenDiff("testing", "testing") → 0 lenDiff("hello", "goodbye") → 2 lenDiff("go", "much faster") → 9 ...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: 300
Copyright Nick Parlante 2017 - privacy