You are viewing a single comment's thread. Return to all comments →
def decode(m,n, matrix): s = '' for i in range(m): for j in range(n): s += matrix[j][i] pattern = r'(?<=[a-zA-Z])([^a-zA-Z]+)(?=[a-zA-Z])' s = re.sub(pattern, " ", s) return s
Seems like cookies are disabled on this browser, please enable them to open this website
Matrix Script
You are viewing a single comment's thread. Return to all comments →