Ah, good point. I suppose I should have used ^: instead of doing a full scan... Or, just estimating the size I needed - maybe having that as a manually supplied argument.
Didn't really matter, I guess - figuring out how to do that would have taken longer than the time needed for the scan. But it's a very good point (and one that I had been counting on taking advantage of, before I got over-focussed on debugging my code). Thanks, -- Raul On Mon, Dec 4, 2017 at 2:02 PM, Roger Hui <[email protected]> wrote: >> First part of day 3 was not slow. Only the second part. > > Spoiler alert. > > > > > > > > > > > > > > > > > > > > > > > > > > For the second part, you only need to work with a small spiral. > > > > > On Mon, Dec 4, 2017 at 10:57 AM, Raul Miller <[email protected]> wrote: > >> First part of day 3 was not slow. Only the second part. >> >> Thanks, >> >> -- >> Raul >> >> >> On Mon, Dec 4, 2017 at 10:21 AM, Jimmy Gauvin <[email protected]> >> wrote: >> > " >> > >> > painfully slow." that's what happens if you generate the spiral but, >> > for the first part of day 3 challenge, you don't need to generate it. >> > >> > On Mon, Dec 4, 2017 at 8:03 AM, Raul Miller <[email protected]> >> wrote: >> > >> >> >> >> Probably can be simplified... and >> >> >> >> painfully slow. >> >> >> > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
