Yes, as said by Thanakron Tandavas,
Recursion is good when you are solving a problem that can be solved by divide and conquer technique.
For example: Towers of Hanoi
- N rings in increasing size
- 3 poles
- Rings start stacked on pole 1. Goal is to move rings so
that they are stacked on pole 3 ...But
- Can only move one ring at a time.
- Can’t put larger ring on top of smaller.
- Iterative solution is “powerful yet ugly”; recursive solution is “elegant”.