in reply to
Re: Finding Neighbours of a String
in thread Finding Neighbours of a String
Your approach generates oodles of duplicates which it then filters back out by eating up memory for hashes. The approach I outlined above generates no dupes to begin with.
I didnít know about Math::Combinatorics though; nice module.
It did annoy me that I had to use two different modules with confusing differences in their APIs. Iíll update my code to use M::C instead.
Makeshifts last the longest.