re: Challenge: Write a program that never stops VIEW POST

FULL DISCUSSION
 

his technically doesn't run forever, but takes longer than you'd expect:

Python:

import re

exp = re.compile("a(b|c+)*d")
exp.match("a" + "c"*100)
 
code of conduct - report abuse