leetle

Daily challenge for 2025-04-09

99. Generate Fibonacci Sequence

Write a function solve that generates the first n numbers of the Fibonacci sequence. The Fibonacci sequence starts with 0 and 1, and each subsequent number is the sum of the two preceding numbers.

Example:
Input: 6
Output: [0, 1, 1, 2, 3, 5]

Run this challenge interactively in Python or JavaScript when the app loads.