Sunday, March 1, 2015

February 2015 1HaskellADay Problems and Solutions

February 2015
  • February 27th, 2015: Let's put all our primes in a circle, shall we? Ah, how cute! Today's #haskell problem suggested by @jamestanton @bretthall defines a solution, with some analysis, at
  • February 26th, 2015: Okay, check this! Today's #haskell problem is as easy as 1, 2, 3! An easy as π solution is posted at ... mmm! π! But is it apple π or ... raspberry π? #couldntresist
  • February 25th, 2015: I'd like moccha sprinkles on my double capicua, please. No. Wait. Today's #haskell problem suggested by a tweet from @OnThisDayinMath
  • February 24th, 2015: Not satisfied with a simple square-from-square problem @BenVitale takes it up a notch and asks us to cube dat square! We have one solution out of 20k squares posted at : [(39204,39304)]
  • February 23rd, 2015: I hereby christen this week a fun-with-numb3rs week, and start us off by learning that 'easierest' is a word,, just like 'ginormous.' And the winner, wait! Ladies and gentlemen, we have MULTIPLE winners! Good thing the solution isn't the Lotto No, wait. The problem statement wasn't read carefully by the solution-poster. I blame that wicked, wicked @geophf! Bad geophf! Bad! ;)
  • February 20th, 2015: It's a #Borderlands2 Truxican Standoff for you to resolve in today's #haskell problem The solution is simple really: just a projection into a monad category in order to do some monoidal deduction is all!
  • February 19th, 2015: For today's #haskell problem we learn that 'AEKL' is a word in English (no, it's not, actually) A megalokaryocyte-solution is posted at (now, that's a common word ... NOT! ;)
  • February 18th, 2015: Instead of doing today's #haskell problem, let's go ice skating. No, let's do BOTH! Okay, a loquacious solution? garrulous? Yes. Once one cuts through all the attempts, it's a simple solution, too: ... and updated the solution with the monoidal guarantee-by-implication that the result is unique (instead of just hoping it is) #coercivelogic
  • February 17th, 2015: For today's #haskell problem we are asked to 'fix' our monetary problems (or the library, at least) Made Data.Monetary.USD a Fractional instance and eliminated floating point creep #haskell #money #precision 
  • February 16th, 2015: Getting a jump-start on the day with two really, really hard math problems for today's #haskell problem A solution in which we learn a baseball costs a nickel ... IN WHICH CENTURY?
  • February 13th, 2015: Today's SCARY #haskell problem comes by way of @OnThisDayinMath Tonight's late-night movie, Friday the 13th, part III as the solution to today's #haskell problem.
  • February 12th, 2015: Gurer ner gvzrf jura ... yeah. That. Today's #haskell problem, thanks to @KenKenPuzzle The solution shows us that it's INTENSE unscrambling words
  • February 11th, 2015: Change adds up quickly in today's #haskell problem So, but ... does that mean programming is like ... maths? Nah! A solution to today's #haskell problem
  • February 10th, 2015: The price of a letter (or of all letters of the alphabet) is the question for today's haskell problem. In the solution we learn the geophfmeister is down-low on the B.I.G. 323, yo!
  • February 9th, 2015: 'Oh, no!' ... just another Manic Monday ... AND today's #haskell problem Oh, noes! Mr. Bill! A solution to the oh, no!-problem.
  • February 6th, 2015: It's Friday! Friday! Hava #haskell problem on Friday! Fun-fun-fun! Lookin' forward to the weekend! Groovin' to aRebecca Black solution at
  • February 5th, 2015: Triangles and Squares as numbers for today's Haskell problem. A Triangulated-squares solution is provided by @bretthall at
  • February 4th, 2015: Three birds in the hand is better than today's #haskell problem an ornithologist's delight inspired by @KenKenPuzzle. The solution, using MultiMaps, PartitionedSets, and Arrows is (@geophf-obviously) "WOOT! WOOT! WOOT!"
  • February 3rd, 2015: We entertain a foolish attempt at a #haskell problem, and then we get serious with six sewing seamstresses A silly seamstress solution is posted at 
  • February 2nd, 2015: Today's #haskell exercise is all about the #SuperBowl! (No, it's not, but that makes for good copy), or 110, 210, ... The moral (and solution) to this story is: Don't eat cheerios seasoned with basil. Or something like that. Inspired by @bretthall solution, I expanded to include last-3-of-4 digits for solutions to bases 4,5,6 @jamestanton