Marshall wrote:
> Here's 18:
> '_*'{~4=+/~4<.|i:5
Dang: 18 bytes. FWIIW, the Shannon information in the generated string is ...
about 17 bytes. Kolomogorov is arguably smaller (and of course, the 12 byte
train produces the same information), but that's really damn cool.
-Scott
---
539 260 136 80 32 32
' *'{~#:3 u:U NB. with quotes, 25 characters
#U
11
>Date: Mon, 28 Oct 2013 22:30:02 -0400
>To: programm...@jsoftware.com
>Subject: Re: [Jprogramming] code golf
>Message-ID: <20131029023002.ga17...@marshall.un
Here is mine:
' *'{~(,{:)@|:@|.^:4]4=+/~|i:4
sent from an android phone
2013. 10. 29. 오전 11:17에 "June Kim (김창준)" 님이 작성:
>
> There was a large developers conference last weekend in Seoul. The
> estimated attendants were about 2000.
>
> In the open booth hall, they held a code golf contest. The pr
I wanted to, but I was the main organizer of the Alternative Language
Festival, which was a mini conference inside the large one, and I had no
chance to participate. :(
sent from an android phone
2013. 10. 29. 오후 12:33에 "Devon McCormick" 님이 작성:
> Why didn't you participate in the contest?
>
>
> O
|i:5
> 11
>
> Linda
> -Original Message-----
> From: programming-boun...@forums.jsoftware.com [mailto:
> programming-boun...@forums.jsoftware.com] On Behalf Of Marshall Lochbaum
> Sent: Monday, October 28, 2013 10:30 PM
> To: programm...@jsoftware.com
> Subject: Re:
ot;:' *'{~4=+/~ 4<.|i:5
11
Also:
#' *'{~4=+/~4<.|i:5
11
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Marshall Lochbaum
Sent: Monday, October 28, 2013 10:30 PM
To: prog
Why didn't you participate in the contest?
On Mon, Oct 28, 2013 at 10:17 PM, June Kim (김창준) wrote:
> There was a large developers conference last weekend in Seoul. The
> estimated attendants were about 2000.
>
> In the open booth hall, they held a code golf contest. The problem is write
> a pro
Here's 18:
'_*'{~4=+/~4<.|i:5
_*_
_*_
*_*
___*___*___
__*_*__
**___**
__*_*__
___*___*___
*_*
_*_
_*_
# '''_*''{~4=+/~4<.|i:5'
18
Marshall
On Tue, Oct 29, 2013 at 11:17:03AM +0900, June Kim (김창준) wrote:
> There was a large develop
There was a large developers conference last weekend in Seoul. The
estimated attendants were about 2000.
In the open booth hall, they held a code golf contest. The problem is write
a program that produces(replace _ with blank):
_*_
_*_
*_*
___*___*___
__*_*__
**___
efore * in ' *'? Thanks,
>
> -Original Message-
> From: "Dan Bron"
> Sent: 7/22/2013 7:54 PM
> To: "'J Programming'"
> Subject: [Jprogramming] Code golf: approximate pi
>
> There's a code golf challenge on StackOverflow
Why is there a space before * in ' *'? Thanks,
-Original Message-
From: "Dan Bron"
Sent: 7/22/2013 7:54 PM
To: "'J Programming'"
Subject: [Jprogramming] Code golf: approximate pi
There's a code golf challenge on StackOverflow [1] wh
This would be the natural output for a "real" J verb, buy to keep solutions --
and code sizes -- comparable, answers in all languages must produce identical
output.
-Dan
Please excuse typos; composed on a handheld device.
On Jul 23, 2013, at 1:20 AM, bob therriault wrote:
> I'm almost embar
Thanks for the catch. Fixed.
-Dan
Please excuse typos; composed on a handheld device.
On Jul 23, 2013, at 12:42 AM, Skip Cave wrote:
> The J code on SO for odd numbers is missing the ">"
>
> This is what is posted on SO:
> c=:*:({&' *'@],&":2%(%+/@,))] (|@j./~2&|#])@i:@<:
> c 13
> |index err
I'm almost embarrassed to suggest this to such an elegant solution, but we can
get down to 42 if can leave it in boxed form.
c=:({&' *';2*+/@,%#*#)@:>_2{.\|@j./~@i:@<:
c 8
┌───┬─┐
│***│3.125│
│ * │ │
│***│ │
│***│
The J code on SO for odd numbers is missing the ">"
This is what is posted on SO:
c=:*:({&' *'@],&":2%(%+/@,))] (|@j./~2&|#])@i:@<:
c 13
|index error: c
This is what it should be:
c=:*:({&' *'@],&":2%(%+/@,))]>(|@j./~2&|#])@i:@<:
Skip
On Mon, Jul 22, 2013 at 9:13 PM, Marshall Lochbaum wrote:
count on SO feel free to post it, I'll vote it
>>> up past my original. If you don't, I'll replace mine with yours and link to
>>> your message on the Forum.
>>>
>>> -Dan
>>>
>>> -Original Message-
>>> Fr
>> From: programming-boun...@forums.jsoftware.com
>> [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Marshall
>> Lochbaum
>> Sent: Monday, July 22, 2013 9:38 PM
>> To: programm...@jsoftware.com
>> Subject: Re: [Jprogramming] Code golf
ur message on the Forum.
>
> -Dan
>
> -Original Message-
> From: programming-boun...@forums.jsoftware.com
> [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Marshall
> Lochbaum
> Sent: Monday, July 22, 2013 9:38 PM
> To: programm...@jsoftware.com
&
rogramming-boun...@forums.jsoftware.com] On Behalf Of Marshall
Lochbaum
Sent: Monday, July 22, 2013 9:38 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Code golf: approximate pi
I haven't been able to shorten your code. But here's a version which handles
odd numbers, at the cost o
I haven't been able to shorten your code. But here's a version which
handles odd numbers, at the cost of only two characters:
c=:*:({&' *'@],&":2%(%+/@,))]>(|@j./~2&|#])@i:@<:
Rather than filtering by position (_2{.\]), we filter the x values by
oddness (2&|#]).
Marshall
On Mon, Jul 22, 2013 at
There's a code golf challenge on StackOverflow [1] which asks us to generate
an approximation of a circle in ASCII (i.e. using integral Cartesian
coordinates) and a corresponding estimation of pi.
For example, the 8th order circle in ASCII has 15 rows and 8 columns and
gives an approximate value o
21 matches
Mail list logo