Building Recursive Algorithms in Swift

In this series, we’ve examined object-oriented and functional programming techniques used to create algorithms and data structures. However, another method to consider is recursion. In a nutshell, recursion is a coding technique that provides an indeterminate set of references to one’s self. In this essay, we’ll review the concept of recursion and will demonstrate how to write recursive code with Swift.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store