about | help | code help+videos | done | prefs |
Write the method keepHearts. This method receive a String array of "cards". The method will find all Hearts and return all non-hearts in a string array. Sample: ["H1","H2","H3","C4","D9"] the return String array would be:["C4","D9"] keepHearts(["H1", "H2", "H3", "C4", "D9"]) → ["C4", "D9"] keepHearts([]) → [] keepHearts(["H1", "H2", "H3", "H4", "H9"]) → [] ...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: 145
Copyright Nick Parlante 2017 - privacy