Title: Alternative to Recursion: Stack Approach
Course: CPS 261: Advanced Java Concepts ~ DL & MM MASTER > Section: Learning Units - Bb

Presentations and Videos

- Alternative to Recursion: Stack Approach lecture video (Time: 00:00)
- Alternative to Recursion: Stack Approach document

- If you didn't know how to write a recursive algorithm, you could use a Stack to solve the same problem. In this example, we solve the previous problem again using a Stack. Sometimes it is easier to see the solution when using the "Stack Algorithm" approach and sometimes it is easier to see the solution when using the "Recursive Algorithm" approach.