about | help | code help+videos | done | prefs |
Given 2 arrays that are the same length containing strings, compare the 1st string in one array to the 1st string in the other array, the 2nd to the 2nd and so on. Count the number of times that the 2 strings start with the same char. All strings have at least 1 character. There is at least 1 string in each array. countSameStart(["aa", "bb", "cc"], ["aaa", "xx", "bb"]) → 1 countSameStart(["aa", "bb", "cc"], ["aaa", "blab", "bob"]) → 2 countSameStart(["aa", "bb", "cc"], ["fg", "pop", "ccc"]) → 1 ...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: 220 Post-solution available
Copyright Nick Parlante 2017 - privacy