Note: see the rest of the series so far.
I stumbled across this post the other day and problem 2 seems like something I can easily do in APL since it essentially requires you to interleave two arrays.
This is a classic interview question, and after some experimentation I ended up with the following solution in APL:
$latex F \ \iota 100$
Surprisingly, my last post on APL did well on HackerNews, turns out there is genuine interest in APL out there, which is great to see
Having heard so much about APL from Phil Trelford (who is one of the leaders in the F# community) I decided to try it out too. For the uninitiated, APL code looks every bit as mind-bending and unbelievable as scenes from Johnny Depp’s Fear and Loathing in Las Vegas.