Skip to content

Instantly share code, notes, and snippets.

View seanbiganski's full-sized avatar

Sean Biganski seanbiganski

View GitHub Profile

Ruby Program: Unique Four-Letter Sequences from a Dictionary

Objective

Write a Ruby program that extracts unique four-letter sequences from words in a dictionary file.

Requirements

  • The program must generate two output files:
    • sequences.txt: Contains four-letter sequences that appear in exactly one word.
    • words.txt: Lists the corresponding word for each sequence, in the same order.
  • Sequences are case-insensitive.