* Adam Rice [EMAIL PROTECTED] [2003-07-22 16:02]:
I wrote a program to generate these, but has an unfun tendency
to take forever when the solution is non-trivial so I won't
post it. If there was a better technique than brute force to
find the answers that might be fun, but I just can't get my
Quoting A. Pagaltzis ([EMAIL PROTECTED]):
Basically, with all ASCII characters used at most once, you can't
really write anything that needs to actually operate on data in
any more but the most trivial ways.
Actually, using the technique from Ronald J Kimball's JAPH, you can encode any
ASCII
[EMAIL PROTECTED] schreef:
Can anyone improve the above so that it checks the whole of , not
just one line? Bonus points for an explicit multi-character message
rather than undef on failure.
#!perl -0234
=~m{(.)[^$/]*\1}sandtwo
contains no characters twice (except for the final \n),
Richard Proctor wrote:
What is the most interesting program that is restricted to
use each ASCII character at most once?
Anybody who can do a JAPH like that?
Steffen
--
@n=([283488072,6076],[2105905181,8583184],[1823729722,9282996],[281232,
What is the most interesting program that is restricted to
use each ASCII character at most once?
The definition I chose was to check if a program (from @ARGV) contains
duplicate chars and printing a duplicate char iff it has one. This had a
sort of quiney feel to it and hence could be
Sebe, M.Sc.
Freelance Analyst-Programmer
www.programEz.net
-Original Message-
From: Ronald J Kimball [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 7:25 PM
To: Steffen Muller
Cc: [EMAIL PROTECTED]
Subject: Re: Fun - Each character at most once
On Thu, Jul 17, 2003 at 05
* [EMAIL PROTECTED] [EMAIL PROTECTED] [2003-07-17 21:15]:
What is the most interesting program that is restricted to
use each ASCII character at most once?
The definition I chose was to check if a program (from @ARGV)
contains duplicate chars and printing a duplicate char iff it
has one.
[EMAIL PROTECTED] schreef:
Can anyone improve the above so that it checks the whole of , not just one
line? Bonus points for an explicit multi-character message rather than undef
on failure.
#!perl -0234
=~m{(.)[^$/]*\1}sandtwo
contains no characters twice (except for the final \n), checks