19
J, 3 * 3 = 9
1[2
+2+
2+2
Executing all directions:
". '1[2+2+2+2','2+2+2+1[2','1+2[2+2+2','2+2[2+1+2','2+2+2+2[1','2[1+2+2+2','2+2+2[2+1',:'2+1+2[2+2'
1 7 3 4 8 2 6 5
Explanation:
In J execution goes from right to left and there is no operator precedence.
The [ (left) takes the lef...