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... :/ )

    Monday, September 1, 2014

    August Haskell Daily puzzles and solutions

    August, 2014

    • August 1st, 2014: "But programming isn't math, so ..." Today's #haskell problem? 'Fix' yesterday's solution to be less ... 'icky.' π, fast (So you're not eating π? ... okay: 'quickly.') A solution set to today's exercises with Wow-o-wow results.
    • Bonus: August 1st, 2014: This is Embarrassing(ly parallel) to have π in da face!
    • A-to-the-ST for da D-down-low-on-the-SL. Today's #haskell exercise is write your own language, then some rules. Yeah. LAWLZ! NAND on the A-to-the-ST! A solution to the first 2 exercises to today's problem. YMMV: not pretty nor generic.
    • Baby needs a new pair of shoes! And you need a new daily #haskell problem to solve. Done! ;) Love is the Universal Language. No, wait. We were talking about Money, yes? Me confused. Solution to today's exercise I have a Yen for Thinking Japanese, or so I think so ... a solution to the bonus #haskell exercise
    • Bayes was a man of letters. A Bayesian classifier for letter-recognition? Sure, let's give it a go for today's #haskell exercise. So now we know 'M' looks like 'W' to some peeps but 'B', 'I', 'O' check out fine, so WE ARE READING WITH HASKELL! YAY ... added definitions to do test runs over the entire data set and then did various runs, tweaking the system. Results noted. Informative.
    • Today's #haskell exercise. An expert system for blood donation. I use the term 'expert' loosely, eh? ;) Have at it! "I vant to drinq yur bloot! Bwa-hahaha!" Okay. That quote is just ... creepy. A solution to today's exercise is at
    • Veni, Vidi, ... Duci? Today's #haskell exercise. It is a relief to know that no tactical nukes were launched by testing the solution to today's #haskell exercise. or How do you count Mississippi's in Roman numerals?
    • August 11th, 2014, Monday: You've heard of 'Rock Management'? How about ROCK LOBSTERS! GIVE ME A ROCK, NAOW!!!1!!!!11! Today's #haskell exercise 
    • August 12th, 2014, Tuesday: To Fract or Not to Fract: why are we even considering this question? Today's #haskell exercise 

    • Ooh! Bonus problem? On a Tuesday? Wowsers! Today's #haskell #bonus problem: "Continuum spectrum maximum... uh, 'thing'um"
    • August 13th, 2014, Wednesday. No problem! (literally), but: "Fract! The Cylons!" No... wait: Starbuck used a different word. A solution to yesterday's fracting problem is at
    Flatliners. No fracting, no 'peak'ing, just a baseline data set of 
    initializeSpectrum defined with flatline function.

    Twin Peaks. Still not fracted, but data set with two spikes 
    rolled into the base data set with smoothSpike fn 

    Fracted. Data set with peaks, fracted using the frackedSpike function

    • August 14th, 2014, Thursday: Pining for that next fibo date-time before 2584. Today's #haskell problem inspired by @AlgebraFact Updated problem. Tightened up return value, removing unnecessary semideterminism. So, it gives, leik, a septatuple answer, leik. ... Yeah. Time keeps flowing like a (Fibonacci) river, to the sea. A solution to  the 'next Fibonacci' problem posted today.
    • Hail, Eris! or the Law of Fives or today's #haskell problem (implementing a Ripple-down rule set). Do it to it! One of three-parter solution to today's problem: Forall Existential(ism) A solution allowing forall-quantified values. Two of the three-part solution: All you need is fnord (la-di-da-di-dah)! Rippling down (and accumulating fired) rules Third of three-part solution: RippleDownRuleto ergo sum, adding rules to the RDR system  Updated the 3rd solution to the RDR (Writer monad definition) to ripple down to left and right, fixing inconsistency in rule findings.
    • August 18th, 2014: What's FP good for? Crypto and technical (financial) indicators. Why? Um, let's do today's #haskell exercise! Full on, all the way! Double Rain-... wait: line-graph. Solution to today's #haskell exercise

    • August 19th, 2014: What does it all mean? All the way! No, wait: this is just today's #haskell exercise (backtesting SMA indicator ). Take the monoid and run(State-WriterT), or WAAH! WAAH! I lost 100 corn chips on my investment strategy or, solution: But, as solace, it does come with a pretty picture, illustrating today's solution. Ooh! 

    • August 20th, 2014: Next up for today's #haskell exercise is the Exponential Moving Average. A solution to the E(xponential)M(oving)A(verage) #haskell problem: Stately Conformance 

    • August 21st, 2014: My Jeans. No ... I meant: 'GENES'! That's it. Today's #haskell exercise. A solution to (not even CLOSE to) 'yesterday's' #haskell exercise: Nature or Nurture? We present a genetic algorithm
    • August 22nd, 2014: Today's (much delayed) #haskell problem: the Silver Ratio (from @AlgebraFact Every cloud has a silver lining .. Every Haskell problem has a solution. (sometimes) (except noncomputable problems)

    • August 25th, 2014: LYADCFGG! Today's #haskell exercise? (automated/learned) Document classification.
    • August 26th, 2014: "Join me, Luke, on the Dark Side of the Force, and help me go #FORTH to solve today's #haskell exercise! MWA-HAHA!" The World's smallest DSL: Forth. A solution to today's #haskell exercise
    • August 28th, 2014: "As I compose this #haskell problem ... p.s. I love you ... You! You! You!" #1960s #song A little card logic problem. Oh, NOES! LOOK OUT! IT'S A CARD-#SHARKNADO! Nah, it's just 'today's #haskell solution, is all
    • August 29th, 2014: Groovitudes! WordNet Themes! or: today's #haskell exercise A 3x3 matrix has 36 possible solutions. A 5x5 matrix? Over 200M poss solutions? YIKES! A solution to the themed-words
    • The Forth language problem solution given on August 26th gives a very snazzy RPN ('reverse Polish notation') calculator, but that's all it does the ':'-defining word needs access and look-ahead to the program parsed stream, and that's a bit more to ask than pushing and popping stack operators.
    • For the August 29th problem(WordNet themes) the raw generated solution set is over 209M possibilities. My little Haskell program was not finished scanning them over four hours when I killed the process. However, my dear wife solved the problem in under five minutes. Setting aside the fact that she's a genius, the program needs to be better. It needs to use the ontology of English-language words to eliminate fruitless endeavors during their generation, not afterwards during the test phase.