about | help | code help+videos | done | prefs |
In a given hand of standard playing cards, write the method to determine the number of "face cards" - Remember a face card is a "Jack", "Queen", and "King". Our program will just denote the first letter. The input to the method findFaceCards will be a String array and the output will be the integer count of face cards. Sample ["CQ","DQ","S8","S10","HK"] would return 3 findFaceCards(["CQ", "DQ", "S8", "S10", "HK"]) → 3 findFaceCards([]) → 0 findFaceCards(["CQ", "D8", "S8", "S10", "HA"]) → 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: 140
Copyright Nick Parlante 2017 - privacy