Two long trains from me:
NB.Beware of line break.
ti=:<;._2[0 :0
ULL
RRDDD
LURDL
UUUUD
)
p2=:'123456789'{~(,|:|."1 j./~i:1)i.[:|.[:>[:}:[:([:([:j./ _1>.1<. [:+. +)/
[:|.,~)&.>/\.[:|.0;(0j1 0j_1 _1 1{~'UDLR'&i.)&.>
p2p=:'123456789ABCD'{~(0j2 _1j1 0j1 1j1 _2 _1 0 1 2 _1j_1 0j_1 1j_1
0j_2)i.[:|.[:>[:}:[:([: +`]@.(2<[:+/[:|[:+.+)/ [:|.,~)&.>/\.[:|._2;(0j1 0j_1 _1
1{~'UDLR'&i.)&.>
> On Dec 2, 2016, at 9:23 AM, Joe Bogner <[email protected]> wrote:
>
> I posted my solution to part 1 of Day 2
>
> http://code.jsoftware.com/wiki/Essays/Advent_Of_Code_2016#Solution
>
> Glad to see others posting their Day 1 (Ric, Henry, Pascal)
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm