Fibonacci Sequence

Easy
50 XP

Challenge Description

Solve the Fibonacci sequence using dynamic programming. Optimize both time and space complexity.

Examples

Example 1:

Input:

0

Output:

0
Example 2:

Input:

1

Output:

1

Languages

Challenge Stats

Total Attempts

0

Status