Find word pairs whose reverse exists in a file
Filed under Hike
The question
Given a large file of strings containing words and potentially their reverses, print all pairs whose reverse also appears in the file, minimizing space and time without explicitly computing string reverses.
No write-up yet. Related questions below have one.
Related Hike questions
Collected from public candidate posts and coding forums. Updated Nov 2026.