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


Map-2 > wordMultiple
prev  |  next  |  chance

Given an array of strings, return a Map<String, Boolean> where each different string is a key and its value is true if that string appears 2 or more times in the array.

wordMultiple(["a", "b", "a", "c", "b"]) → {"a": true, "b": true, "c": false}
wordMultiple(["c", "b", "a"]) → {"a": false, "b": false, "c": false}
wordMultiple(["c", "c", "c", "c"]) → {"c": true}

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

public Map<String, Boolean> wordMultiple(String[] strings) { }

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: 360 Post-solution available

Copyright Nick Parlante 2017 - privacy