You are viewing a single comment's thread. Return to all comments →
I basically had the same solution. I think using map is nice in the return statement:
map
return
return sum(map(abs, ct_a.values()))
Seems like cookies are disabled on this browser, please enable them to open this website
Strings: Making Anagrams
You are viewing a single comment's thread. Return to all comments →
I basically had the same solution. I think using
map
is nice in thereturn
statement: