Albuquerque challenge
the albuquerque challenge is a programming challenge by user:tommyaweosme after getting 3-4 hours into a 17-hour video called "albuquerque but every time a word repeats it loops (normal speed)".
goal
the goal of this challenge is to make a program that takes an input from the user, and then outputs a string of text that is the input from the user, except every time a word is repeated it loops back to its previous usage.
as an example,
i am awesome person. am i cool? i guess i am
when inputted to the program, would output
i am awesome person. am awesome person. am i am awesome person. am i cool? i cool? i guess i guess i am i cool? i guess i am
(this gets out of hand very quickly.)
interpretations
there's one made in penguinmod on user:tommyaweosmes school computer, verrrry slow, and using text to speech for some reason (they blocked scratch :( )
any actual interpretations can go down here.
Here's an implementation, but performed on each letter:
p=input() for i in range(len(p)):print(end=p[i]+(p[i-p[i-1::-1].find(p[i]):i+1]if p[i]in p[:i]else""))
-- i s l p t n g 05:35, 6 May 2025 (UTC)