id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > quiz2022_02_24_APSLHL_countMatches
prev  |  next  |  chance

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)

public int quiz2022_02_24_APSLHL_countMatches(String[] strs) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 250

Copyright Nick Parlante 2017 - privacy