30 
 
        
      
      Mirage ของคนฉลาด
      
  กาลครั้งหนึ่งฉันได้อ่านคำถาม / คำตอบนี้เกี่ยวกับ Quora มีโปรแกรมเมอร์ที่มีองศาวิทยาศาสตร์คอมพิวเตอร์ซึ่งไม่สามารถผ่านการทดสอบ FizzBuzz ได้หรือไม่ รหัสนี้เป็นคำตอบที่ชัดเจน for i in range(1, 100): if i % 3 == 0 and i % 5 == 0: print "FizzBuzz" elif i % 3 == 0: print "Fizz" elif i % 5 == 0: print "Buzz" else: print i แน่นอนว่าFizzBuzzได้รับการตีกอล์ฟให้ตาย แต่นั่นไม่ใช่สิ่งที่คำถามนี้เกี่ยวกับ ในความเห็นมีคนพูดว่าคำตอบที่ชัดเจนนี้ดีมากเพราะมันง่ายที่จะเพิ่มเงื่อนไขพิเศษเช่นพิมพ์ "Jazz" …
      
        
          
                   29
                
        
        
          
                  
                    popularity-contest 
                  
                    code-challenge 
                  
                    word 
                  
                    popularity-contest 
                  
                    string 
                  
                    grid 
                  
                    language-design 
                  
                    code-golf 
                  
                    source-layout 
                  
                    math 
                  
                    fastest-algorithm 
                  
                    assembly 
                  
                    code-golf 
                  
                    json 
                  
                    code-golf 
                  
                    arithmetic 
                  
                    array-manipulation 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    code-golf 
                  
                    crossword 
                  
                    code-golf 
                  
                    string 
                  
                    restricted-complexity 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    kolmogorov-complexity 
                  
                    code-golf 
                  
                    string 
                  
                    decision-problem 
                  
                    balanced-string 
                  
                    syntax 
                  
                    code-golf 
                  
                    grid 
                  
                    puzzle-solver 
                  
                    hexagonal-grid 
                  
                    code-golf 
                  
                    math 
                  
                    number 
                  
                    sequence 
                  
                    code-golf 
                  
                    string 
                  
                    decision-problem 
                  
                    code-golf 
                  
                    cryptography 
                  
                    king-of-the-hill 
                  
                    code-challenge 
                  
                    fastest-code 
                  
                    code-golf 
                  
                    number 
                  
                    code-golf 
                  
                    code-golf 
                  
                    string 
                  
                    code-golf 
                  
                    cryptography 
                  
                    king-of-the-hill 
                  
                    java 
                  
                    code-golf 
                  
                    number-theory 
                  
                    base-conversion 
                  
                    code-golf 
                  
                    code-golf 
                  
                    array-manipulation 
                  
                    code-golf 
                  
                    array-manipulation 
                  
                    sorting 
                  
                    code-challenge 
                  
                    restricted-source 
                  
                    quine 
                  
                    code-golf 
                  
                    tips 
                  
                    python 
                  
                    king-of-the-hill 
                  
                    code-golf 
                  
                    source-layout 
                  
                    fractal 
                  
                    code-golf 
                  
                    tips 
                  
                    game 
                  
                    king-of-the-hill 
                  
                    path-finding 
                  
                    grid 
                  
                    code-golf 
                  
                    kolmogorov-complexity 
                  
                    natural-language 
                  
                    code-golf 
                  
                    tips 
                  
                    python 
                  
                    code-golf 
                  
                    number 
                  
                    arithmetic 
                  
                    sequence 
                  
                    array-manipulation 
                  
                    code-golf 
                  
                    number 
                  
                    combinatorics 
                  
                    random 
                  
                    integer-partitions 
                  
                    code-golf 
                  
                    string 
                  
                    code-golf 
                  
                    vim 
                  
                    comment 
                  
                    code-golf 
                  
                    combinatorics 
                  
                    counting 
                  
                    code-challenge 
                  
                    rosetta-stone 
                  
                    code-golf 
                  
                    combinatorics 
                  
                    sequence 
                  
                    subsequence 
                  
                    code-golf 
                  
                    code-challenge 
                  
                    restricted-source 
                  
                    primes 
                  
                    printable-ascii 
                  
                    popularity-contest 
                  
                    graphical-output 
                  
                    image-processing