I wrote: > Solutions which are overreliant on character literals (e.g. > #'abcdef..!@$...') or undefined names (e.g. abc`def`ghi etc) will be > considered cop-outs and be disqualified. If there is more than one > shortest program, the first to be posted (based on Forum timestamp) will > be declared the winner.
While we're at it, included in the "cop-out" category is overreliance on numeric literals specified in non-decimal bases (eg 1bthisisavalidjprogramhahaha). Also, "doesn't raise an error" doesn't mean you can win by surpressing errors (using :: or try. or whatever). In other words: don't ruin the fun! -Dan ----- Original Message --------------- Subject: [Jprogramming] Programming puzzle: shortest valid pangrammic program From: Dan Bron <[email protected]> Date: Mon, 19 May 2014 12:01:38 -0400 To: [email protected] Write the shortest valid J program that uses all printable ASCII characters. More specifically, write a J program which: - Doesn't raise an error - Returns something other than itself (e.g. 'abcde...!@$%' doesn't count; a ;: c / @ e. i: .. doesn't count, etc). - Uses each of the following characters at least once: a. {~ 32 +i.5 19 !"#$%&'()*+,-./012 3456789:;<=>?@ABCDE FGHIJKLMNOPQRSTUVWX YZ[\]^_`abcdefghijk lmnopqrstuvwxyz{|}~ Solutions which are overreliant on character literals (e.g. #'abcdef..!@$...') or undefined names (e.g. abc`def`ghi etc) will be considered cop-outs and be disqualified. If there is more than one shortest program, the first to be posted (based on Forum timestamp) will be declared the winner. -Dan ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
