coding180 icon
Coding180

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.


user

Robort Gabriel

Lagos, Nigeria

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

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