about | help | code help+videos | done | prefs |
Given an array of strings, return a Map<String, Integer> containing a key for every different string in the array, and the value is that string's length. wordLen(["a", "bb", "a", "bb"]) → {"bb": 2, "a": 1} wordLen(["this", "and", "that", "and"]) → {"that": 4, "and": 3, "this": 4} wordLen(["code", "code", "code", "bug"]) → {"code": 4, "bug": 3} ...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: 306
Copyright Nick Parlante 2017 - privacy