Why embed spaces? What's wrong with "."0, as in
(;~$) "."0 A NB. might not display properly! +----+-----------------------------------------------------+ |3 27|1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3| | |1 1 1 2 2 2 3 3 3 1 1 1 2 2 2 3 3 3 1 1 1 2 2 2 3 3 3| | |1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3 1 2 3| +----+-----------------------------------------------------+ Mike On 15/10/2017 20:31, Linda Alvord wrote:
here's some thing to think about. Here's an "all combinations"challenge.]A=:|:((3^3),3)$, >{3$<'123' 111111111222222222333333333 111222333111222333111222333 123123123123123123123123123 $A 3 27Find a way to separate all rows and columns with spaces so you can apply “. To turn the characters to a 3 27 array of jntegers. . Linda AOL Mobile Mail -----Original Message----- From: Cliff Reiter <[email protected]> To: programming <[email protected]> Sent: Tue, Oct 3, 2017 11:21 PM Subject: Re: [Jprogramming] Quora Digits Problem A cheat (?) that builds instead of "removing" z=.,".>{4#<'123456' $z 1296 10{.z 1111 1112 1113 1114 1115 1116 1121 1122 1123 1124 On 10/3/2017 4:16 PM, Skip Cave wrote: > Another interesting Quora problem: > > Given the integers from 1000 to 9999, remove all integers that contain a 7, > 8, 9, or zero, and list the remaining integers. > > Skip > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
--- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
