gudii9
asked on
wordlen challenge
Hi,
I am working on below challenge.
http://codingbat.com/prob/p125327
I am working on below challenge.
http://codingbat.com/prob/p125327
public Map<String, Integer> wordLen(String[] strings) {
int len=strings.length;
Map<String, Integer> map = new HashMap<String, Integer>();
for(int i=0;i<len;i++){
map.put(strings[i],strings[i].length());
}
return map;
//}
}
i passed all tests. any improvements or alternate approaches? please advise
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i will use above for formatting