Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Code golf
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Stefano Lanzavecchia  
View profile  
 More options Sep 7 2012, 11:56 am
Newsgroups: comp.lang.apl
From: Stefano Lanzavecchia <stefano.lanzavecc...@gmail.com>
Date: Fri, 7 Sep 2012 08:56:01 -0700 (PDT)
Local: Fri, Sep 7 2012 11:56 am
Subject: Re: Code golf

On Thursday, 6 September 2012 23:00:42 UTC+2, (unknown)  wrote:
> On Thursday, August 23, 2012 11:22:50 PM UTC-4, frangonve wrote:

> > Currently golfscript and q language win. Here you can find the requirements, tersesness rules here: http://codegolf.stackexchange.com/questions/7036/print-custom-alphabet Cheers Francisco

> Using APL2, I have the following at 64 characters:

>     C←⍉⊃2↑(26>B)/(B←A⍳¨↑R←⍞)⌽¨A←26↑¨65 97↓¨⊂⎕AV⋄⍎((2×=/B)+1≠⍴R)↓'∊C'

When given input "dc" it answers:
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
a
b
c
d

which is wrong because "dc" is an invalid input.

Also, when given input "d" it produces a 52 elements vector, which is wrong according to the specs because the last character should not be a space.
Finally, when given input "d." it produces a 26x2 matrix which, once again, according to the specs, is wrong because there should be no space between the alphabetic character and the CR/LF terminator.

Close, but no cigar ;)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.