-
Automate the Boring Stuff – DevOps
Introduction The fun part of being able to code is well… the coding right? (provided it works) but in reality so many developers spend a minority of their working day writing code, there are meetings, phone calls, lunch (ok that bit isn’t bad), and all the work around building, testing and deploying software. An approach…
-
Everyday I’m Shuffling.
I read an article the other day explaining that Spotify changed it shuffling algorithm due to a large amount of user feedback suggesting it was repeating songs by the same artist frequently or playing the same song twice. A company like Spotify has a huge amount of engineering talent, so I was confused as to…
-
Stick or Twist – the Monty Hall Problem
In Season 4 Episode 9 of the comedy show Brooklyn 99, two characters fall out over a debate around a probability problem. The problem is known as the “Monty Hall problem” due to the fact it was made famous on a game show named “Lets Make a Deal”. Initially I was a little confused into…
-
Convert a Number to Roman Numerals
I was on the LeetCode website earlier today, more often than not the problems on this site scare the living hell out of me, however one caught my eye and I naively thought “that can’t be that hard can it?”, you’d think by now I’d know better than that, but the problem felt solvable and…
-
Sudoku Solver
Yesterdays post was about backtracking and to milk as much as possible from this topic I thought I would demonstrate another example of how this can work. I failed to do a Sudoku from the newspaper this morning and thought – hang on, could I use backtracking to solve it for me. How Sudoku Works…
-
8 Queens Problem
Recently I downloaded and played the excellent game “Human Resource Machine” (Human Resource Machine) – this one must have passed me by without me noticing it as it was released in 2015. In this game you instruct a character to solve various problems using an assembler type language. It starts off easy and then goes…