Yesterday, we reviewed Chris’ test-driven code he wrote for the Look-and-Say sequence for our code kata challenge. Today, we will stick with java and see how Andy likes to roll with no strings attached!
No Strings Attached
Andy wrote in JavaScript and used JSFiddle at the event, but later submitted this example to us.
What’s unique about this example is that he implemented the sequence generator with a function that, rather than taking a string input and returning a string output, takes and returns integer types instead. This was one of the optional challenges discussed towards the end of the event.
Take a look at Andy’s code…