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.
@seanbiganski
seanbiganski / dictionary words
Last active March 17, 2022 19:24
dictionary
10th
1st
2nd
3rd
4th
5th
6th
7th
8th
9th