#47. wordLen
wordLen
Background
Description
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.
Format
Input
Output
Samples
"a" "bb" "a" "bb"
{"bb": 2, "a": 1}
"this" "and" "that" "and"
{"that": 4, "and": 3, "this": 4}
"code" "code" "code" "bug"
{"code": 4, "bug": 3}
Limitation
1s, 1024KiB for each test case.