# Haskell Quiz

### From HaskellWiki

(added maximum subarray) |
(→Possibly fun ones not yet done in haskell) |
||

(14 intermediate revisions by 9 users not shown) | |||

Line 10: | Line 10: | ||

2. [[Haskell Quiz/Secret Santas|Secret Santas]] | 2. [[Haskell Quiz/Secret Santas|Secret Santas]] | ||

+ | |||

+ | 3. [[Haskell Quiz/Geodesic Dome Faces|Geodesic Dome Faces]] | ||

5. [[Haskell Quiz/Sokoban|Sokoban]] | 5. [[Haskell Quiz/Sokoban|Sokoban]] | ||

+ | |||

+ | 6. [[Haskell Quiz/GEDCOM|GEDCOM Parser]] | ||

7. [[Haskell Quiz/Countdown|Countdown]] | 7. [[Haskell Quiz/Countdown|Countdown]] | ||

+ | |||

+ | 11. [[Haskell Quiz/TicTacToe|TicTacToe]] | ||

+ | |||

+ | 13. [[Haskell Quiz/Cryptograms|Cryptograms]] | ||

15. [[Haskell Quiz/Animal Quiz|Animal Quiz]] | 15. [[Haskell Quiz/Animal Quiz|Animal Quiz]] | ||

Line 30: | Line 38: | ||

33. [[Haskell Quiz/Tiling Turmoil|Tiling Turmoil]] | 33. [[Haskell Quiz/Tiling Turmoil|Tiling Turmoil]] | ||

+ | |||

+ | 37. [[Haskell Quiz/Inference Engine|Inference Engine]] | ||

39. [[Haskell Quiz/Sampling|Sampling]] | 39. [[Haskell Quiz/Sampling|Sampling]] | ||

Line 80: | Line 90: | ||

122. [[Haskell Quiz/Credit Cards|Checking Credit Cards]] | 122. [[Haskell Quiz/Credit Cards|Checking Credit Cards]] | ||

+ | |||

+ | 126. [[Haskell Quiz/FizzBuzz|FizzBuzz]] | ||

128. [[Haskell Quiz/Verbal Arithmetic|Verbal Arithmetic]] | 128. [[Haskell Quiz/Verbal Arithmetic|Verbal Arithmetic]] | ||

Line 85: | Line 97: | ||

131. [[Haskell Quiz/Maximum Sub-Array|Maximum Sub-Array]] | 131. [[Haskell Quiz/Maximum Sub-Array|Maximum Sub-Array]] | ||

− | + | 138. [[Haskell Quiz/Count and Say|Count and Say]] | |

− | + | 139. [[Haskell Quiz/IP to Country|IP to Country]] | |

− | + | 141. [[Haskell Quiz/Probable Iterations|Probable Iterations]] | |

− | + | 147. [[Haskell Quiz/Goedel|Goedel]] | |

+ | |||

+ | 156. [[Haskell Quiz/Internal Rate of Return|Internal Rate of Return]] | ||

+ | |||

+ | ==Possibly fun ones not yet done in haskell== | ||

48. Math Captcha http://www.rubyquiz.com/quiz48.html | 48. Math Captcha http://www.rubyquiz.com/quiz48.html | ||

Line 100: | Line 116: | ||

87. Negative Sleep http://www.rubyquiz.com/quiz87.html (As a Monad!!!) | 87. Negative Sleep http://www.rubyquiz.com/quiz87.html (As a Monad!!!) | ||

− | |||

− | |||

Many weren't included because of either clumsy ASCII output, or requiring a dictionary. Perhaps a dictionary module could be created and those problems attacked in a unified fashion. | Many weren't included because of either clumsy ASCII output, or requiring a dictionary. Perhaps a dictionary module could be created and those problems attacked in a unified fashion. |

## Revision as of 14:29, 23 August 2012

A collection of solutions to the Ruby quiz puzzles in simple, elegant Haskell.

As you solve the puzzles, please contribute your code, and create a page for the puzzle entries. When creating a new page for your source, be sure to categorise it as code, with a [ [ Category:Code ] ] tag.

## 1 The Puzzles

5. Sokoban

7. Countdown

11. TicTacToe

13. Cryptograms

15. Animal Quiz

19. Yahtzee

22. Roman Numerals

25. English Numerals

31. Amazing Mazes

33. Tiling Turmoil

37. Inference Engine

39. Sampling

43. Sodoku Solver

57. Weird Numbers

60. Numeric Maze

63. Grid Folding

76. Text Munger

77. cat2rafb

84. PP Pascal

88. Chip Eight

92. DayRange

93. Happy Numbers

97. Posix Pangrams

98. A*

99. Fuzzy Time

100. Bytecode Compiler

106. Chess960

107. Word Search

108. Word Blender

114. Housie

117. SimFrost

121. Morse Code

126. FizzBuzz

128. Verbal Arithmetic

131. Maximum Sub-Array

138. Count and Say

139. IP to Country

141. Probable Iterations

147. Goedel

## 2 Possibly fun ones not yet done in haskell

48. Math Captcha http://www.rubyquiz.com/quiz48.html

49. Text Image http://www.rubyquiz.com/quiz50.html (Not sure how image loading will work)

85. C-Style Ints http://www.rubyquiz.com/quiz85.html

87. Negative Sleep http://www.rubyquiz.com/quiz87.html (As a Monad!!!)

Many weren't included because of either clumsy ASCII output, or requiring a dictionary. Perhaps a dictionary module could be created and those problems attacked in a unified fashion.