about | help | code help+videos | done | prefs |
Returns the length of the longest string in an array of strings. Hint: use a helper method to do recursion on an array and call it from longestString. The parameters for the new method will be the current index along with the array itself. longestString(["here", "are", "some", "words"]) → 5 longestString(["hello"]) → 5 longestString([]) → 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: 300
Copyright Nick Parlante 2017 - privacy