Explain the concept of tail recursion
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: easy
Interview Round: Other
Overview: Asks what tail recursion is and how it differs from ordinary recursion. Tests whether you can spot a tail call, rewrite a function with an accumulator, explain how tail call optimization affects stack space, and know which languages support it.