about | help | code help+videos | done | prefs |
Write a method that returns the number of 'matches' between two strings. To be a 'match' both strings must have the same character in the same position in both strings. Note that the two strings could have different lengths. Look at the test data for examples. mar7_2017_APSLHL_countMatches("", "") → 0 mar7_2017_APSLHL_countMatches("x", "x") → 1 mar7_2017_APSLHL_countMatches("x", "xyz") → 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: 290
Copyright Nick Parlante 2017 - privacy