Skip to content
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

Added Legendre's Algorithm #1905

Merged
merged 2 commits into from
Nov 9, 2024
Merged

Conversation

Nidhicodes
Copy link
Contributor

📥 Pull Request

Description

This PR introduces the Legendre's Algorithm to the algorithms section. The algorithm is used to find the largest power
𝑥 such that 𝑘^𝑥 divides n!, where n! is the factorial of a given number n, and k is a divisor (either prime or composite).

Type of change

  • New feature (non-breaking change which adds functionality)
  • Documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Copy link

github-actions bot commented Nov 6, 2024

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible.). If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

Copy link

github-actions bot commented Nov 6, 2024

⚡️ Lighthouse Report for the Deploy Preview of this PR 🚀

🔗 Site: Algo | Live Site

URL 🌐 Performance Accessibility Best Practices SEO 📊
/algo/ 🔴 46 🟢 96 🟡 71 🟡 86 📄
/algo/docs 🔴 45 🟢 96 🟡 75 🟢 100 📄
/algo/blog 🟡 67 🟢 92 🟢 96 🟡 86 📄

@ajay-dhangar ajay-dhangar added gssoc-ext Contributions made as part of GirlScript Summer of Code Extended Edition. level1 GirlScript Summer of Code | Contributor's Levels labels Nov 7, 2024
Copy link
Owner

@ajay-dhangar ajay-dhangar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

update your code based on suggestions

docs/algorithms/Legendre's Algorithm/legendre-algo.md Outdated Show resolved Hide resolved
docs/algorithms/Legendre's Algorithm/legendre-algo.md Outdated Show resolved Hide resolved
docs/algorithms/Legendre's Algorithm/legendre-algo.md Outdated Show resolved Hide resolved
docs/algorithms/Legendre's Algorithm/legendre-algo.md Outdated Show resolved Hide resolved
docs/algorithms/Legendre's Algorithm/legendre-algo.md Outdated Show resolved Hide resolved
docs/algorithms/Legendre's Algorithm/legendre-algo.md Outdated Show resolved Hide resolved
docs/algorithms/Legendre's Algorithm/legendre-algo.md Outdated Show resolved Hide resolved
docs/algorithms/Legendre's Algorithm/legendre-algo.md Outdated Show resolved Hide resolved
docs/algorithms/Legendre's Algorithm/legendre-algo.md Outdated Show resolved Hide resolved
docs/algorithms/Legendre's Algorithm/legendre-algo.md Outdated Show resolved Hide resolved
@Nidhicodes
Copy link
Contributor Author

Fixes #1905

Copy link
Owner

@ajay-dhangar ajay-dhangar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@ajay-dhangar ajay-dhangar merged commit a57a2d9 into ajay-dhangar:main Nov 9, 2024
5 checks passed
Copy link

github-actions bot commented Nov 9, 2024

🎉🎉 Thank you for your contribution! Your PR #1905 has been merged! 🎉🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gssoc-ext Contributions made as part of GirlScript Summer of Code Extended Edition. level1 GirlScript Summer of Code | Contributor's Levels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants