You are viewing a single comment's thread. Return to all comments →
Another method which works as well!
Python 3, all test cases passed:
from collections import Counter def merge_the_tools(string, k): for s in [string[i:i+k] for i in range(0, len(string), k)]: print("".join(Counter(s)))
Seems like cookies are disabled on this browser, please enable them to open this website
Merge the Tools!
You are viewing a single comment's thread. Return to all comments →
Another method which works as well!
Python 3, all test cases passed: