You are viewing a single comment's thread. Return to all comments →
my python 3 approach some test cases are passed but some are terminated due to timeout error can anyone help:
from itertools import combinations a=input() p=combinations(a,len(a)-2) p=set(p) print(len(p))
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Strings
You are viewing a single comment's thread. Return to all comments →
my python 3 approach some test cases are passed but some are terminated due to timeout error can anyone help: