coding180 icon

Which data structure is used to perform recursion?

Home > Interviews > PHP

robort - 2022-09-16 06:33:50

Because of its LIFO nature, the stack data structure is used for recursion. The stack is maintained by the operating system to save iteration variables on each function call.


Robort Gabriel

Lagos, Nigeria

Freelance Web Developer, Native Android Developer, and Coding Tutor.

  • UI / UX
  • JavaScript
  • Python
  • PHP
  • Kotlin
  • Java
  • Bootrap
  • Android
  • Laravel