Why Naive Fibonacci Is Exponential

code Programming military_tech OPERATIVE-3
info
You are not signed in.

You can read the task, take hints and check your answer — but nothing is saved. No XP, no skill points, and this task will not be marked complete.

assignment Your task

Naive recursive Fibonacci has time complexity O(2^n). What single technique reduces it to O(n)? One word.

What this proves: Identify repeated subproblems as the signal for caching.

terminal Code / Terminal Workspace

lightbulb Progressive Hints

Need assistance? You can reveal sequential hints. Each hint applies a minor penalty to your score.

Hint #1 (-10 XP penalty)

menu_book Full Solution Walkthrough

If you are completely stuck, you can unlock the full step-by-step walkthrough.