Skip to content

Created frizzy numbers algorithm #3379

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 3 commits into from

Conversation

gitwikc
Copy link

@gitwikc gitwikc commented Oct 3, 2022

Describe your change:

  • Add an algorithm?
  • Fix a bug or typo in an existing algorithm?
  • Documentation change?

References

None

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, please open separate PRs for separate algorithms.
  • All new Java files are placed inside an existing directory.
  • All filenames are in all uppercase characters with no spaces or dashes.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in its comments that points to Wikipedia or other similar explanation.
  • If this pull request resolves one or more open issues then the commit message contains Fixes: #{$ISSUE_NO}.

Frizzy Numbers

Added the Frizzy number algorithm that calculates the n-th sum of powers of a given base when starting in ascending order

Example
base = 3 and n = 4
Ascending order of sums of powers of 3 =

  • 1st => 3^0 = 1
  • 2nd => 3^1 = 3
  • 3rd => 3^1 + 3^0 = 4
  • 4th => 3^2 + 3^0 = 9
    Ans = 9

@gitwikc gitwikc marked this pull request as ready for review October 3, 2022 12:29
# and commit this file to your remote git repository to share the goodness with others.

tasks:
- init: mvn install -DskipTests=false
Copy link
Member

Choose a reason for hiding this comment

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

The code looks good, but what is this file for?

@github-actions
Copy link

github-actions bot commented Feb 7, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added stale and removed stale labels Feb 7, 2023
@siddhant2002
Copy link
Contributor

@siriak Can I work under this issue??

@siriak siriak closed this in 87f9ebc Mar 1, 2023
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.

3 participants