11 comments (11 comments)2 reactions (2 reactions)0 assignees (0 assignees)C++3,724 forks (3,724 forks)batch import
Hacktoberfestnew algorithm
Repository metrics
- Stars
- 13,462 stars (13,462 stars)
- PR merge metrics
- No merged PRs in 30d (No merged PRs in 30d)
Description
Find the nth fibonacci number (starts from 0). C implementation.
This is a(n):
Details:
Contributor guide
- Research direction
- Implement a function `int fib(int n)` that returns the nth Fibonacci number (starting from 0). Use iteration for efficiency. Ensure the function handles edge cases like n=0 and n=1 correctly.
- Tech stack
- c
- Domain
- backend
- Issue type
- Feature
- Prerequisites
- C