Skip to content

Add math snippets for factorial and Fibonacci calculations #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 0 commits into from

Conversation

dibyam-jalan27
Copy link

Description

Type of Change

  • ✨ New snippet
  • πŸ›  Improvement to an existing snippet
  • 🐞 Bug fix
  • πŸ“– Documentation update
  • πŸ”§ Other (please describe):

Checklist

  • I have tested my code and verified it works as expected.
  • My code follows the style and contribution guidelines of this project.
  • Comments are added where necessary for clarity.
  • Documentation has been updated (if applicable).
  • There are no new warnings or errors from my changes.

Related Issues

Closes #

Additional Context

Screenshots (Optional)

Click to view screenshots

Copy link

netlify bot commented Jan 1, 2025

βœ… Deploy Preview for quicksnip ready!

Name Link
πŸ”¨ Latest commit ccb2e7b
πŸ” Latest deploy log https://app.netlify.com/sites/quicksnip/deploys/67753112afe8d500083f15c6
😎 Deploy Preview https://deploy-preview-89--quicksnip.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Mathys-Gasnier
Copy link
Collaborator

Hey, we recently updated how snippets are stored, please update your PR to match the changes, you will be able to see how to add snippets in CONTRIBUTING.md.
For ref: #87

@danovdenys
Copy link

@dibyam-jalan27 It's likely the most inefficient way to calculate fibonacci sequence with O(2^N) time complexity and O(N) auxiliary space.
It is better to use loops or matrix exponentiation

@majvax majvax added the update needed Code needs to be updated. label Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update needed Code needs to be updated.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants