Skip to content

Added more efficient version of euler totient function #299

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

Merged
merged 1 commit into from
Oct 4, 2020

Conversation

devansh9011
Copy link
Contributor

@devansh9011 devansh9011 commented Oct 4, 2020

I am creating a pull request for...

  • [Euler totient function] New algorithm
  • [This is more efficient version of euler totient function] Update to an algorithm
  • Fix an error
  • Other - Describe below
    The algorithm present in the repo was working in O(n) time complexity, i have added the more efficient version of the algorithm which workd in O(sqrt(n))
    Note:- This PR is for hacktober fest

Copy link
Member

@abranhe abranhe left a comment

Choose a reason for hiding this comment

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

Thanks so much for your contribution to The All ▲lgorithms Project. Without people like you submitting Pull Requests we couldn't run this project. You rock!

@abranhe abranhe merged commit 17b6206 into AllAlgorithms:master Oct 4, 2020
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