|Print the Fibonacci series up to N terms....|General Coding Problems

fn fibonacci_series(n: u32) -> Vec<u64>

Easy

Print the Fibonacci series up to N terms.

fn fibonacci_series(n: u32) -> Vec<u64>

Asked in

tcs

Examples

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

Click Run to test sample cases, or Submit to evaluate all cases