views:

1081

answers:

6

Are there any other sources of programming type riddles on the internet?

I started my set of daily programming riddles, jokes, and quotes partly to help myself and my team grown in some technical areas... like new .NET 3.5 features, design patterns, anti-patterns, code smells, etc.

I would love to find other short programming riddles on the web, but I haven't ran across any yet. Do any of you know any, or would you consider starting to make your own?

+4  A: 

I'm fond of http://projecteuler.net/

Project Euler is a series of challenging mathematical/computer programming problems that will require more than just mathematical insights to solve. Although mathematics will help you arrive at elegant and efficient methods, the use of a computer and programming skills will be required to solve most problems.

Some problems are insidiously difficult, but incredibly rewarding.

Slipfish
+6  A: 

Code Kata is in my recent bookmarks.

There is also a good selection of programming puzzle books out there:

...among others.

David Grant
A: 

To Mock a Mockingbird

While they are not programming puzzles, To Mock a Mockingbird does contain some really good logic puzzles that are beneficial to developers. I was recommended this book by another developer.

Bit Destroyer
+1  A: 

insecure programming by example

a not too tricky excerpt: this is an arbitrary code execution vulnerability. task: 0wn it.

/* n1.c                                                      *
 * specially crafted to feed your brain by [email protected] */

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>

#define MAX_SIZE 80

unsigned int atoul(char *str) {
    unsigned int answer=0;
    for (;*str && isdigit(*str);
     answer *= 10, answer += *str++-'0');
    return answer;
}

int main(int argv, char **argc) {
    char buf[MAX_SIZE],*pbuf=buf;
    int count = atoul(argc[1]);

    if (count >= MAX_SIZE) count = MAX_SIZE-1;

    while (count--) *pbuf++=getchar();
    *pbuf=0;
}
Dustin Getz
A: 

This one is for python ....

http://www.pythonchallenge.com/

A: 

Hava a look at http://scarky.com you can find some riddles there and even post your own

lukusz