in reply to Re: Re: Detecting transpositions
in thread Detecting transpositions
I'd probably go for a recursive subroutine, although there's the possibility for an iterative solution as well.
As for the N-queens problem, it basically is the recursive subroutine, except molded to fit the regexp syntax. And the only reason I did this exercise was "because I can". I don't think I would easily do such a thing in production code.
Abigail
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Detecting transpositions
by BrowserUk (Patriarch) on Aug 06, 2003 at 22:12 UTC |