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

 

andersoniii.edwin@cusd80.com > keepPairs
prev  |  next  |  chance

Write the method keepPairs. This method receive a String array of "cards". The method will find all pairs and return all non-pairs in a string array. Sample: ["H1","C1","H3","C4","D9"] the return String array would be:["H3","C4","D9"]


keepPairs(["H1", "C1", "H3", "C4", "D9"]) → ["H3", "C4", "D9"]

...Save, Compile, Run (ctrl-enter)

public String[] keepPairs(String[] cards) }

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: 120

Copyright Nick Parlante 2017 - privacy