Mea culpa : While "Smallest acceleration wins long term" is a good first
approximation, it does not cover the case when there are many equal
smallest accelerations.

On Wed, Dec 20, 2017 at 12:09 PM, Jimmy Gauvin <[email protected]>
wrote:

> ​​
> ​​
> Another spoiler for part 1  in the tradition of APL one-liners:
>
> {. /:+/"1|_3{."1 ". ;._2 (1!:1 <'\\AOC2017\Day20input.txt') -. 'pva=<>'
>
> NB. Smallest acceleration wins long term
>
>
> On Wed, Dec 20, 2017 at 11:34 AM, Jimmy Gauvin <[email protected]>
> wrote:
>
>> Where do the candy cane and the barber come from?
>> Have the elves been playing with your code?
>>
>> C A N D Y
>>  S C A N E R
>>     S P O I L E R
>>        S P O I L E R
>>           S P O I L
>> E R          S P O I
>>  L E R          S P
>> O I L E R          S
>>  P O I L E R
>>   B A R B E R P
>>
>> On Wed, Dec 20, 2017 at 9:17 AM, David Lambert <[email protected]>
>> wrote:
>>
>>> First time I've used Nub Sieve,
>>>
>>>    24 20$23{.1j1#'SPOILER'
>>> S P O I L E R
>>>    S P O I L E R
>>>       S P O I L E R
>>>          S P O I L E
>>>  R          S P O I
>>> L E R          S P O
>>>  I L E R          S
>>> C A N D Y
>>>  S C A N E R
>>>     S P O I L E R
>>>        S P O I L E R
>>>           S P O I L
>>> E R          S P O I
>>>  L E R          S P
>>> O I L E R          S
>>>  P O I L E R
>>>   B A R B E R P
>>>      O L E I L E R
>>>         S P O I L E
>>> R          S P O I L
>>>  E R          S P O
>>> I L E R          S P
>>>  O I L E R
>>> S P O I L E R
>>>
>>>
>>>
>>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to