Sunday, January 4, 2015

December 2014 1HaskellADay Problems and Solutions

December 2014
  • December 30th, 2014: Why can't we all just consensus along? for today's Haskell problem Pro-, con-, anti-, ... it's all sensus to me!
  • December 29th, 2014: Uh, wait! What? It's another day? We need another #haskell puzzler? Here ya go! Rosalind subs (not grinders) Rose petals falling ... and a soution to the #rosalind subs problem
  • December 24th, 2014: A||B||C == Merry Christmas for today's haskell problem
  • December 23rd, 2014: Convergence, but not the movie, is today's #haskell problem A rational solution was posted by @sheshanaag at 
  • December 22rd, 2014: Yesterday was about the zeroes, today's haskell problem is about the squares
  • December 21nd, 2014: In which we want to have the most zeros. Fancy that! (I guess we're not playing Dodgeball, then!)
  • December 19th, 2014: A question for today's #haskell problem: how do YOUclear a Writer monad's log? A FlushableWriter solutionwas posted by @aditcr8 at
  • December 18th, 2014: Why can't you spell 'PROTEIN' with proteins? The solution for this problem is to Eat your proteins, young man!
  • December 17th, 2014: In which we find out that Mendel was into the Domme-scene for today's #haskell problem Whether hetero- or homo- a zygous is still a zygous... whatever that is. A solution to today's #haskell-zygous problem is posted at
  • December 16th, 2014: All actors should relate to today's #haskell problem; it's all about H-A-M-M! Go HAMM it up; #Rosalind will love you. And the solution is so HAMMy!
  • December 15th, 2014: Wanna Date? In which Jane Austen writes today's #haskell problem in her modern book titled: "The Hook Up" aka Pride and Prejudice. To get to our solution space, first we have to write an l-expr scanner/parser, of course.
  • December 12th, 2014: In this case 'GC' does NOT mean 'garbage collection' for today's #rosalind #haskell problem Yeah, not garbage-collected, but a solution, nonetheless 
  • December 11th, 2014: Why ... you ... wascally wabbit! Today's #haskell problem has a solution multiplying like Fibonaccis! I mean: rabbits. And speaking of rabid rabbits, the solution is there. BLARGH! 
  • December 10th, 2014: "Hello, Strand, you're looking lovely in that dress!" Complimenting DNA for today's #haskell problem. No, wait: 'comPLEmenting' a strand of DNA. Sorry, Miss Rosalind! A nicely complimented solution to the DNA-complement problem posted at
  • December 9th, 2014: I think this is my week with dear Rosalind: DNA-to-RNA transcriber for today's #haskell problem Another #TweetedHaskellSolution posted to for today's DNA-to-RNA transcriber
  • December 8th, 2014: Rosalind, dear Rosalie, wherefore art thou givest me bioinformatic puzzles to solve, counting nucleotides? #haskell Nucleotide-counter, HO! A nucleotide-counting solution is posted at 
  • December 5th, 2014: This visit to Liar's-berg (or is it Truth-town?) we encounter only two women, so this should be 2x as easy to solve By coercion, we find that we are in Liarsberg, after all:
  • December 4th, 2014: Gadzooks! It's (past) that time of day again for the daily #haskell problem. Here: eat some glow worms!
  • December 3rd, 2014: Substantive citizens (with some substantive hints, for a change) for today's #haskell problem
  • December 2nd, 2014: There are some curious fractions to find for today's #haskell problem at Asolution to this curious fraction problem is posted at
  • December 1st, 2014: Today's Haskell problem is all about lambda-terms. It has NOTHING to do with for-loops and if-statements, ... NOT ONE BIT Solution: 

Monday, December 8, 2014

10 programming challenge sites

Okay. Whoa!

I saw this off the twitter feed: Ten programming challenge sites

And, from it, I have a new love affair:, a problem-solving site for bioinformatics. I love it. What's not to love!

Monday, December 1, 2014

November 2014 1HaskellADay Problems and Solutions

November 2014
  • November 3st, 2014: Let it snow, let it snow, let it ... lambda for today's #haskell problem ... and the answer is Snow Mittens for Snow Kittens! YAY!
  • November 4nd, 2014: At the First National Bank the MEN like to play chess with each other Today's #haskell problem. Men in banks like playing chess with each other come to find in the solution to today's #haskell logic puzzle
  • November 5th, 2014: Doin' the spiral from, problem 28, for today's #haskell puzzler Heh, I actually spiraled out to the solution for today's #haskell problem.
  • November 6th, 2014: From @BenVitale funwithnumb3rs site, we have a, b, and c ... and how simple can today's #haskell problem be? ;)'s as easy as 1, 2, 3! is our solution to today's problem
  • November 7th, 2014: Making sensical tweets for #ingress for today's #haskell problem A semantical romp through syntax (that is: the solution) is posted at
  • November 10th, 2014: As I embark on my morning commute, I share today's #haskell problem about ... the morning commute! To get to the solution ya gotta keep on truckin'
  • November 11th, 2014: Some Coin sums. In for a penny, in for a £ for today's #haskell problem Solution coded, but is it the correct one for counting coins? How did you do it? HA! I found the problem with my counting-coins solution! Redundancies! Updated solution at
  • November 12th, 2014: Squares, Cubes and Triangles masquerade as numbers in today's #haskell problem The square by a cube of a triangle is our digit-picking solution to today's math puzzle
  • November 13th, 2014: It's all about making the grade. I MEANT: 'THE SEARCH FOR TRUTH'! Yeah, THAT's what I meant. Not: 'making the grade.' Translation: Today's #haskell problem is about making the grade. I MEANT 'SEEKING KNOWLEDGE'! Yeah. That's what I meant. *blush* Isabella makes the grade in today's equational solution (rant by @geophf provided free of charge).
  • November 14th, 2014: 0h, h1 there! for today's #haskell puzzle
  • Our bonus solution is coded here (, and looks like this:

  • November 17th, 2014: The in-laws bump into Amy and her baby in the perambulator on her daily stroll for today's #haskell problem For today's solution we find a really roundabout way to say 'brother-in-law' And the bonus solution( we graph it with Neo4J:

  • November 18th, 2014: Would you like some chips with that Fish? The #haskell puzzler for today is a 'SOLE' word-square Sole Open Ends Lead! A newspaper-escque headline-y-like solution to today's Haskell puzzler
  • November 19th, 2014: Next Mensa puzzler for today's #haskell problem. Who gotfirst place in the science fair? Woman Power! A solution to today's Haskell puzzler
  • November 20th, 2014: "Trick or treat!" But how many bags of candy did the new cashier, to be named later, sell? Solve this to let her know. The solution is posted here ( and graphed out ... for 'funzies.'
  • November 21st, 2014: Her Majesty, Queen Victoria (Vicky or Maj to her buds) (not really), has a #haskell poem-puzzler for you: (Standard disclaimer: we make no representation of reigning monarchs, living or dead, implied or otherwise. Besides... the Queen has no buds.) So, that brings to mind two thoughts, or pensées: 
  1. you see how I used the royal-'we' there? ;)
  2. 2) How sad to be Queen, and have no buds :(
    (@1HaskellADay In which it is learned it is a sadness to be Queen, to have no buds withal. :( *sniffle*) The 'clever' solution ( comes even with its own 'TA-DAH!' ... gratis. You're welcome.

    • November 24th, 2014: Circular primes, from, is today's #haskell puzzler: A solution to the circular primes problem is posted at 
    • November 25th, 2014: Have a well-ordered (re)presentation of today's #haskell problem  Suffice to say: today's 'date' is 'fig.' geddit? ;) A solution is a (sorta) logical calendar 
    • November 26th, 2014: Got a question for ya! for today's Haskell 1-9 in so many ways
    • November 27th, 2014: Happy Thanksgiving to all you Haskell aficionados out there! Today's #haskell puzzle set involves da turkeyzzzz! That there is a lot of turkey!
    • November 28th, 2014: Black Friday. OKAY, FOLKS! TODAY, AND _ONLY_ TODAY, EVERYTHING IS ON SAAAAAAAALLLLEEEE! Today's Black Friday #haskell problem. THESE PRICES ARE ...INSAAAAANNNNEEE! A solution to today's Black Friday logic puzzle.

    Monday, November 3, 2014

    October 2014 1HaskellADay Problems and Solutions

    October, 2014
    • October 1st, 2014, Wednesday: Pathways into Darkness Because Daerkness is the new Pink. Today's #haskell problem. ...AAAAAND we went there: Dark, Darkest, Darko! A solution to the #haskell grid-pathing problem using Data.Graph. FUN!
    • October 2nd, 2014, Thursday: Tweet, tweet! Summer Factorial! a #haskell 'sum'mer exercise for the Fall. From "Power set, HO!" to "Power Sets? NO!" A solution to today's longest factors-sum #haskell problem.
    • October 3rd, 2014, Friday: In which I get WHACKED by the Missus for today's #haskell problem (I've printed out the word-ladders in long form so you can give them to your Missus, thus to avoid enWHACKification! GROSS ('Get Rid Of Stupid wordS') club and goal-directed searches using Levenstein distances give us today's solution
    • BONUS! puzzles for today: YOU get RICK ROLLED! Oh, yeah! I went there!

    • You can't kill the metal, unless you're Rick Rolled; solution to #haskell bonus problem at

    • October 4th, 2014: Dear Dad, SEND + MORE = MONEY Today's #haskell problem. Problem SOLVED! (naively) ... for a small processing fee, ... ;)
    • October 7th, 2014: An American Family Today's #haskell problem gives us the #Twilight lexicon... in a 'VERY' 'BRIEF' synopsis. #ontology 8 of 21 questions are answered against the #Twilight (extended) family tree  My enthusiasm overcame my reasonableness.
    • BONUS #haskell problem for today! Renesmee's (doting) Aunts because EVERYONE dotes on Renesmee. By law. Do-it-to-it! "And Bella Swan lived Happily Ever After" ... and that's the whole point of the 4-book #twilight series. #ontology
    • October 8th, 2014: "A more clever approach than brute force is desirable" for today's #haskell problem (Me? Brute Force, All the WAY!) (Not so) Brutish pathing through triangular sums ... Commited Choice FTW! A solution to today's #haskell problem.
    • October 9th, 2014: Sugar and spice and everything nice ( that's what today's #haskell problem from a logic puzzle from 1957 is made of. A long path to a solution to this day's engagement announcements #haskell problem, involving monoidal Frege logic.
    • October 10th, 2014: "Oh, it's 4:42. No, it isn't, ... zzzz" Those kinds of conversations come up all the time in today's #haskell problem And the poor little matchstick boy went back to sleep in his warm, comfy bed, hot chocolate by his bedside a solution
    • BONUS! Okay, so you're saying liars ALWAYS lie and TruthTellers ALWAYS tell the truth. Wait ... even in Vegas? #Bonus In which we may learn about your sense of humo(u)r a solution using logic, meta-logic, and coercive logic. #ontology 
    • October 13th, 2014: In which we discover Columbus is Big in Japan ... no, wait: that's #ekmett. Today's #haskell problem. We solve this problem by WAY overusing the State Monad! ... Letter to a Young Haskell Enthusiast should have added: "Don't overused the State Monad!" I hear and obey the advice of ekmett!

    • What time is it? π-time? No. (But you were close ...) It's BONUS #haskell problem time! Go discover the New World! And, we discover, solving this bonus problem, that the New World was India (and not the ink), no matter what anyone else says, eh, Columbus?
    • October 14th, 2014: We look at reciprocally-cycled decimal values of fractions in today's #haskell problem In which we discover that @geophf must read the problem statement carefully. A solution to today's #haskell problem
    • October 15th, 2014: Today's #haskell problem: grid placement Or as Neo says: "Whoa."

    • October 16th, 2014: An ... 'intelligence' test for today's #haskell problem. Intelligence test: answered. I had to melt my brain to answer it, however, so that happened.
    • October 17th, 2014: Friedman day was yesterday, but it's today's #haskell problem. Bonus: Friedman proofsno less! ... using Frege's logic ... but only if you want to ... The solution (including the bonus solution) for the Friedman-day problem posted at  WITH FOR-LOOPS!
    • October 20th, 2014: O! Little Town of Milford! has a butcher, baker, and candlestick maker, but who is who? Today's #haskell problem. Okay, gag me with the sequence operator! BLEH! (I really should have gone relational calculus here! :/) A solution at
    • October 21st, 2014: Se7en Little numbers ... okay, well, four of them, anyway, for today's #haskell problem Quantum nodes of scintillating thought  A solution to today's #Haskell problem.

    • October 22nd, 2014: Word Numb3rs is today's #haskell puzzle (thanks to @BenVitale) 'AND' in your language of choice as you so choose. Hinglish-Vinglish is our response to this exercise. "Fruitful." Yeah. Well, at least we got Data.Numeral.English out of it. SWEET!
    • October 23rd, 2014: Today's #haskell problem comes from and is about ... well: Euler, himself! Well, if you wanted list of writer monads, you could've just asked for a list of writer monads 
    • October 24th, 2014: Even odds is our #haskell problem today, thanks to @BenVitale A solution (actually two defined solutions) to @BenVitale even odds problem posted for today's #haskell problem
    I dub this coming week 'Kakuro week' for the theme of #haskell 
    problems to solve (puzzle rendered using #haskell)

    • October 27th, 2014: #kakuro-week: the empty slate is our step one for our #haskell problem(s) to solve today

    • Then we have the...'filled'-slate as a solution to 'today's #haskell problems for #kakuro-week 
    • October 28th, 2014: «On y va!» declaims Sgt. Johnson as he charges headlong into solving today's #haskell problem 
    • And that's how a 'partial' cookie crumbles. Partially. A partial solution to yesterday's #haskell #kakuro problem
    • October 29th, 2014: A magnificent clue for today's #haskell problem in this #kakuro-puzzle-themed week
    • October 30th, 2014: So, what does the 'Su' mean? Today's #haskell puzzler is a sudoku-solver. That you wrote. DoIt-ToIt!
    • October 31st, 2014: Merry Christmas! No. Heurieusement anniversaire! Nope. TRICK OR TREAT! Ya, that's the stuff! Today's #haskell problem

    Wednesday, October 1, 2014

    September 2014 1HaskellADay problems and solutions

    September, 2014

    • September 1st, 2014: They tried to kill the Metal...I don't know where I'm going with that. But rock-n-roll with today's #haskell exercise
    • September 2nd, 2014: Good morning! Triangle Sums is our #haskell problem for today: No triangles were harmed in the solution of their sum (nor in the summation of their solution)

    • September 3rd, 2014: Pay It Forward. What? You didn't think I'd just say: today's #haskell problem is hard and leave it at that, did you? Paid. Or: a constructivist approach reduces the generated sets from 200M+ down to 8 possible solutions That's doable. ... and here is the 'Mr. Clean' version of the solution: fast, and neat. Groovy!
    • September 4th, 2014: Today's #haskell problem: Abacus words because MRFE says "I don't like your math problems; I want more word problems"
    • September 5th, 2014: These 'edgy' relationships these days!  Remember when today's #haskell problem didn't involve graph theory? Data.Graph FTW! A solution to today's 4sum #haskell problem, and it didn't require generating 1625702400 solutions!
    • September 8th, 2014: We have puzzles 1 and 5 from the "Montley Stew" problem set for today's #haskell problem The solution-style to Montley Stew isswimming in list-compression stew
    • September 9th, 2014: King Tut! Our #haskell problem for today is NOT a Pyramid Scheme. Maybe.
    • September 10th, 2014: 'Sed' is 'but(t)' just another word ... in "'laddin" Today's #haskell problem is mix-n-match words. "But(t) I sed ..." ARG! Enough with the 3rd-grade humor! On with the solution to the mix-n-match words!
    • September 11th, 2014: A-plus for you when you solve today's #haskell exercise But an F- (NOT an F# ... geddit?) for /usr/share/dict/words :/ A solution to today's injectInto #haskell problem
    • September 12th, 2014: Today's #Haskell problem comes from She. She who commands you solve it before coding it. So, you know: there it is. Okay, 'thurt' is a word in WHICH Universe? A solution to today's #haskell 'ditto' problem
    • September 15th, 2014: "The name of the game is Connect Four!" and today's #haskell problem as suggested by a tweet from @DrEugeniaCheng. I played Connect 4 against myself and lost! :/ A semi-solution to today's #haskell problem at

    • September 16th, 2014: There's more than one way to slice and dice a matrix for today's #haskell problem (follow-up to yesterday's Connect4) A Hack-n-slash solution to today's diagonal view of matrices. Thebonus solution is provided back at the Connect Four answer to make that game complete:
    • September 17th, 2014: Do you Yahoo!? Today's #haskell problem: connecting to Yahoo!'s financial webservice I like my java GREEN! (java means 'coffee') A solution to stock webservice #haskell problem.

    • September 18th, 2014: Star (Tuna?) Fish? A radial word-finding/matching game is today's #haskell puzzle. Wait. Quantum...WHAT? A solution to today's #haskell problem using quantum superpositions to solve it. I'm not joking. STAR POWER! A solution for pretty-printing the star-puzzle
    • September 19th, 2014: Continued fractions and dual inversionals are today's #haskell problem It even comes with (thoughts about) flowers. #Ult Today's problem was inspired by a comment, then the main article, from @aperiodical That was some LOOOOOOOONG Division! A solution to today's #haskell problem.
    • September 22nd, 2014: Oh, noes! The 'M'-word! for today's #haskell exercise. Project Eulerproblem 11'M' is for 'Monoid' A solution to today's #haskell problem.
    • September 23rd, 2014: "Oh, the snark bites, with his teeth, dear." MACD Knife ... geddit? Today's #haskell problem is a technical indicator.
    • September 24th, 2014: Jones, Smith, and Brown work at the Bank... but not Mr. Banks.A logic puzzle from 1957 for today's #haskell puzzle A pair of PhDs ( helped to solve today's #haskell problem. Neatly, too, I might add.
    • September 25th, 2014: Corned-beef hashi? No, that's not right, and now I'm hungry! :( Shoot! Well, anyway: today's #haskell problem.
    • September 26th, 2014: HA! I TOLD you we'd be getting to cipher-text! From the 1700's, still: it IS cipher text for today's #haskell problem. Ooh! The Plot Thickens (like pea soup)! "ALLMENHAVING" and "be mis T r U st ed " is a solution to today's problem.
    • September 29th, 2014: Big (Crypto) Generator! Today's #haskell problem is a follow-on to Friday's. Human Error ... WHAT human error? A solution to today's make-your-own-cypto-table #haskell problem
    • September 30th, 2014: "I wanna be a blue-collar man!" Yes, but who, and which occupation? Today's #haskell problem addresses this. Plumber, ... or painter? IDK! TWO-solutions to today's #haskell problem (one of them MAY be correct... :/ )