代码之家  ›  专栏  ›  技术社区  ›  Elijah Manor

还有其他编程谜语吗?[关闭]

  •  5
  • Elijah Manor  · 技术社区  · 17 年前

    互联网上还有其他编程类谜语的来源吗?

    我开始了我的生活 set of daily programming riddles, jokes, and quotes 部分是为了帮助我自己和我的团队在某些技术领域成长…像新的.NET 3.5特性、设计模式、反模式、代码气味等。

    我很想在网上找到其他简短的编程谜语,但我还没有遇到。你们中有人知道吗,或者你们会考虑开始自己动手吗?

    7 回复  |  直到 8 年前
        1
  •  7
  •   David Grant    17 年前

    Code Kata 在我最近的书签中。

    还有很多编程益智书可供选择:

    …还有其他。

        2
  •  4
  •   Slipfish    17 年前

    我喜欢 http://projecteuler.net/

    ProjectEuler是一系列具有挑战性的数学/计算机编程问题,需要的不仅仅是数学见解。虽然数学将帮助你达到优雅和有效的方法,但使用计算机和编程技能将需要解决大多数问题。

    有些问题是难以捉摸的,但却非常值得。

        3
  •  2
  •   lukusz    16 年前

    看一看 http://scarky.com 你可以在那里找到一些谜语,甚至张贴你自己的。

        4
  •  1
  •   Dustin Getz sunsations    17 年前

    insecure programming by example

    一个不太复杂的摘录:这是一个任意代码执行漏洞。任务:0.

    /* n1.c                                                      *
     * specially crafted to feed your brain by gera@core-sdi.com */
    
    #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;
    }
    
        5
  •  1
  •       16 年前

    这是给巨蟒的……

    http://www.pythonchallenge.com/

        6
  •  0
  •   jamesmillerio    17 年前

    To Mock a Mockingbird

    虽然它们不是编程难题,但模仿一只知更鸟确实包含一些对开发人员有益的非常好的逻辑难题。我被另一个开发者推荐了这本书。

        7
  •  0
  •   kuszi    15 年前

    SPOJ 有很多编程谜语,但大多数都需要一些算法背景。

    推荐文章