I'm a software engineer, get me out of here: Difference between revisions

Content added Content deleted
(→‎{{header|J}}: extra credit -- first draft (need to confirm some issues which may lead to another draft...))
(→‎J Part 2: row,column or column,row?)
Line 731: Line 731:
11,21 10,20 9,19 9,16 9,9 15,3 15,8 15,5 15,2 14,2
11,21 10,20 9,19 9,16 9,9 15,3 15,8 15,5 15,2 14,2
12,21 10,19 9,18 8,18 13,13 13,11 17,7 15,5 15,2 14,2</syntaxhighlight>
12,21 10,19 9,18 8,18 13,13 13,11 17,7 15,5 15,2 14,2</syntaxhighlight>

Note that we have assumed, here, that 1,11 is row 1, column 11. If instead, we wanted column 1 row 11, we should have also been displaying the above results with coordinates swapped. Still, just in case, we can venture into that realm where column numbers appear before row numbers for a brief moment:<syntaxhighlight lang=J> #1 11 floydpaths&.:(|."1) 21 11
3
#21 11 floydpaths&.:(|."1) 1 11
1
fmtpaths {.1 11 floydpaths&.:(|."1) 21 11
1,11 4,8 6,8 7,7 9,5 15,5 21,11
fmtpaths 21 11 floydpaths&.:(|."1) 1 11
21,11 20,10 19,9 16,9 9,9 3,9 2,10 1,11</lang>

(Other than this sample, all J presentation here assumes row number before column number.)


=== J Extra Credit ===
=== J Extra Credit ===