Logic Puzzle with Swift Using Imperative and Functional Programming

Josh Smith presents an interesting challenge:

“…how many ways you can break any amount of money using any subset of coins.”

Two approaches are shared, both in Swift, one using imperative programming the other functional. Josh’s solution is here.

This is what being a coder is all about, solving interesting problems in creative ways.