How did you practically use recursion? I mean practical problems you had to solve in day to day programming, be that for work or for pleasure. Not school tasks/homeworks but something you did for yourself or others. The ones where I used it myself are:
- drawing some fractals
- traversing directory tree to search for a file
- traversing the DOM tree of a HTML form, which corresponded to the tree structure of the data collected and could adapt to changing form of the structure on the fly.
- nasty fork bomb that grew its own subdirectory tree infinitely on top of forking.
Specifically, I mean first-hand experiences, not thought up examples.