Skip to content

Instantly share code, notes, and snippets.

@fizbin
fizbin / qotw21_main.rs
Created September 26, 2022 12:12
Rust language solution to an ancient "Perl Quiz of the Week" (qotw21)
/*
* This program solves the puzzle
* https://perl.plover.com/qotw/e/021
*
* (In case that link goes away, a brief summary of the problem
* is to consider the free non-abelian group with 26 generators
* 'a' through 'z', under the equivalence relation that any two
* words found in the dictionary that are anagrams of each other
* are equivalent. Now determine which letters commute with which
* other letters, and specifically which letters are in the center.)