Task 6 of 7 · 0 solved · 7 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

10.2 HashSet — count words in an allowed set

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Fill in countInSet so that it returns how many words are members of allowed — counting every occurrence, not just distinct ones.

The program prints 3.

Your solution