practicalli (youtube)
practicalli-john 2020-11-13T16:51:13.153200Z

Solving the Spiral Matrix challenge in a functional way is a lot easier when you think about generating the index in which numbers should be placed, rather than trying to generate numbers in the right order. Hopefully the trick I am using will be made clear in the broadcast... should be an interesting one 🙂



practicalli-john 2020-11-13T17:38:27.155Z

Broadcast - Saturday 09:00 UTC More coding challenge walk-throughs from I will be walking through the Spiral Matrix challenge, which required a bit of lateral thinking, some fairly simple maths and quite a few transformations of data structures (but that is what Clojure excels at). The solution looks a little complex when put together, although it is just made up of map reduce cycle sort-by and a few other common clojure.core functions

practicalli-john 2020-11-13T23:18:30.155200Z

The code I'm covering tomorrow is shared on GitHub There is a functional approach (although its not beautiful) and a recursive function approach.