On Sunday 20 January 2008 19:51:47 Ian Kelly wrote: > I think the mathematical tasks may be tiring to some, so I'm going to > try something else this time. The third task for Brainfuck Golf is to > implement Unix sort. The input is to be read as a sequence of ASCII > lines, each terminated with a newline character (0x0A) and/or EOF > (0x00). The same lines are to be output in lexicographically sorted > order, each terminated by a newline character. The program can > either: > > (a) output each unique line the same number of times that it appears > in the input (i.e. just sort them); or > > (b) output each unique line exactly once (i.e. sort -u or sort | > uniq), which is worth 3 points. > > Note: the input lines never contain newline characters except as > terminators, and EOF will never appear in the input itself. > > -root
What's tiring for me is the programs that are moderately complex. Try something much, much simpler. . . This allows people's skills at tiny code to truly shine. (I'm reminded of a golf round I played in a chatroom to do an output of the alphabet. . . I got it down to 30 chars, IIRC.)