about | help | code help+videos | done | prefs |
Write a method that returns how many matching pairs occur in the string array 'strs'. Look at the test data for examples. quiz2022_02_24_APSLHL_countMatches(["a", "b", "c", "b", "b", "b", "a", "e", "f", "g", "e"]) → 8 quiz2022_02_24_APSLHL_countMatches(["just one"]) → 0 quiz2022_02_24_APSLHL_countMatches(["match", "match"]) → 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: 250
Copyright Nick Parlante 2017 - privacy