3 ms·
For English samples, this should prove faster: def loop_in_perm(s): for c in "eaoiuEAOIU": if c in s: return True
by IAmBroom 1y ago
For English samples, this should prove faster:
def loop_in_perm(s):
for c in "eaoiuEAOIU":
if c in s:
return True
return False
- a_e_k 1y agoOh, that's a nice optimization!