[Jprogramming] Quora Digits Problem

'Mike Day' via Programming programming at jsoftware.com
Sun Oct 15 19:46:38 UTC 2017


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 27
>
>   
>
> Find 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 <reiterc at lafayette.edu>
> To: programming <programming at jsoftware.com>
> 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



More information about the Programming mailing list