You are viewing a single comment's thread. Return to all comments →
Can u explain me after this part
for pair in combinations(sorted(C, key=C.get, reverse=True), 2):
T = [c for c in s if c in pair] if all(c1 != c2 for c1, c2 in zip(T, T[1:])): print(len(T)) break
else: print(0)
Didn't get this part ??
Seems like cookies are disabled on this browser, please enable them to open this website
Two Characters
You are viewing a single comment's thread. Return to all comments →
Can u explain me after this part
for pair in combinations(sorted(C, key=C.get, reverse=True), 2):
else: print(0)
Didn't get this part ??