โ† SAP questions

Write a simple recursive program and evaluate complexity

Filed under SAP

Write a simple recursive function (such as calculating factorial or Fibonacci) and explain how to evaluate its time and space complexity using recurrence relations or recursion trees.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related SAP questions

Collected from public candidate posts and coding forums. Updated Nov 2026.