Recursive functions can be used effectively for tasks such as __________ traversal in data structures.

  • Depth-first
  • Breadth-first
  • Pre-order
  • Post-order
Recursive functions are commonly employed for depth-first traversal, where the function explores as far as possible along each branch before backtracking.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *