¡@

Home 

python Programming Glossary: interlock

How to optimize this Python code (from ThinkPython, Exercise 10.10)

http://stackoverflow.com/questions/5523058/how-to-optimize-this-python-code-from-thinkpython-exercise-10-10

and helpful optimization. Here's the Exercise Two words 'interlock' if taking alternating letters from each forms a new word. For.. from each forms a new word. For example 'shoe' and 'cold' interlock to form 'schooled'. Write a program that finds all pairs of.. Write a program that finds all pairs of words that interlock. Hint Don't enumerate all pairs For these word list problems..