in reply to Stable mixing of 2 arrays into a 3rd
Produce a function that: passed two arrays (or array refs) returns an AoA containing all possible sequences of the two input arrays according to the "random pick - values in sequence" specified in the OP.
Rules: Strict + warnings. Array contents can be anything.
Entries that take longer than an hour to run for input arrays of 100 10 elements (184756 sequences) each are disqualified:)
See thospel's post for the reason for the rule change. It's still an interesting problem to solve, even without golfing it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: (Golf challenge) (to cover my embarassment!)
by thospel (Hermit) on Oct 02, 2004 at 17:07 UTC | |
by BrowserUk (Patriarch) on Oct 02, 2004 at 17:21 UTC | |
|
Several simple (simplistic?) notes
by gaal (Parson) on Oct 02, 2004 at 06:57 UTC | |
by BrowserUk (Patriarch) on Oct 02, 2004 at 08:03 UTC | |
by gaal (Parson) on Oct 02, 2004 at 08:54 UTC |