Skip to content

Fibonacci Script Complete - #3232

Merged
geekcomputers merged 1 commit into
geekcomputers:masterfrom
inayushgupta:betterfib
Nov 5, 2026
Merged

geekcomputers merged 1 commit into
geekcomputers:masterfrom
inayushgupta:betterfib

Conversation

@inayushgupta

Copy link
Copy Markdown
Contributor

Description

Please include a summary of the changes and related context. Explain the problem you're solving or feature you're adding.

Features

  • Runs as any other script on systems with python3 installed
  • Accepts multiple inputs but also have a fallback interactive mode
  • Saves extra work by saving the previous state and does not runs complete calculation for each input
  • uses O(n) dynamic programming approach for each calculation

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Code cleanup/refactoring

Testing

Please describe the tests you've run to verify your changes:

  • Manual testing
  • Added automated tests
  • Existing tests pass

Checklist

  • My code follows the project's code style
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the README.md if needed
  • My changes generate no new warnings
  • I have tested my code locally
  • New and existing tests pass with my changes

Screenshots

Output Example

Screenshot 2026-11-05 at 15 06 45

Remove Duplicate

Screenshot 2026-11-05 at 15 07 10

Time Saving

time to calculate fib to 1000000

Screenshot 2026-11-05 at 15 04 57

time to calculate fib to 1000001
Screenshot 2026-11-05 at 15 04 23

@geekcomputers
geekcomputers merged commit 6dbf3a7 into geekcomputers:master Nov 5, 2026
2 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants