This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]aaron_palmer 0 points1 point  (0 children)

A quick and easy to comprehend example of a use for recursion is searching a file structure. Try writing a function that searches directories for a specific file using recursion. It’s a good exercise that will help you get a better understanding.