Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

The Challenge

Name: Lambda A. Calculus !!wKyoNUUHDOmjW7I 2013-04-20 13:08

Let's get down to business. You hate me, /prog/, and I hate you. Being a Calculus, I am unsatisfied with my programming skill and seek improvement. I challenge any of you who take pride in your skill with C to engage in the following game:

- Put down a challenge. A criteria for a program that both of us shall implement with C.
- Wait for me to accept your challenge. I don't accept those stupid challenges you find on that project euler website. Math doesn't interest me, "such that there exists"-boys. The exercises in K&R2 and, perhaps simple Unix programs, are good examples of the kinds of programs that interest me. You know, useful ones.
- Post your code.
- Wait for me to post my code.

If your program is fancier than my own and yields little criticism from one Lambda A. Calculus, I shall leave /prog/. I'm open to other stakes as well.

I await your challenges and, if any stupid stack boys want to challenge me, go for it.

Name: Anonymous 2013-04-21 21:47

ugh..

const mval = 500;
int r[1001];

int coot[mval+1];

int j=0;

for(int i=0;, i<1000; i++){
  r[i] = rnd() * mval;
  coot[r[i]]++;
  }

for(i=0; i<mval; i++)
  while(coot[i]>0){
    r[j] = i;
    coot[i]--;
    }

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List