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

[New Exercise]: Armstrong Numbers #708

Merged
merged 2 commits into from
Dec 14, 2024

Conversation

meatball133
Copy link
Member

This exercise will test large numbers, seems like it could add a lot of complexity for this simple exercise without any real good language support for large numbers. I am considering adding this library: https://github.com/mkrd/Swift-BigInt, which would be the first library added. Since Swift doesnt have native Int128 nor bigint

@IsaacG
Copy link
Member

IsaacG commented Sep 7, 2024

Should this be synced/updated to match the latest problem specs?

@meatball133
Copy link
Member Author

Yeah, it should I will look into that

@meatball133
Copy link
Member Author

Looked into it, it looks to be update to date

@meatball133 meatball133 merged commit 98b42de into exercism:main Dec 14, 2024
4 checks passed
meatball133 added a commit that referenced this pull request Dec 23, 2024
* Sync docs and metadata (#771)

* Bump actions/checkout from 4.1.7 to 4.2.0 (#772)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@692973e...d632683)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix avogadro constant (#777)

* Update about.md (#778)

* Update about.md

Fix word-choice error.

* Also make fixes in concept:numbers:introduction.md and exercises:freelancer-rates:introduction.md

* Fix `NESButtons` typo (#779)

* Fix `NESButtons` typo

Just a little typo in the enum name.

* fix other mentions of `NESButtons`

* Bump actions/checkout from 4.2.0 to 4.2.2 (#775)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@d632683...11bd719)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [New Exercise]: Armstrong Numbers (#708)

* Add Armstrong Numbers exercise

* Add author

* [Armstrong number]: Fix formatting (#783)

* Fix formatting

* Fix

* [New Exercise]: Darts (#707)

* Add Darts exercise

* Add author

* Fix

* Sync exercise to problem spec

* Update CI configuration and add Swift Numerics dependency (#806)

* Update CI configuration and add Swift Numerics dependency

* Check if swift6 is available in macos 15

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: András B Nagy <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Shaver <[email protected]>
meatball133 added a commit that referenced this pull request Dec 25, 2024
* Sync docs and metadata (#771)

* Bump actions/checkout from 4.1.7 to 4.2.0 (#772)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@692973e...d632683)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix avogadro constant (#777)

* Update about.md (#778)

* Update about.md

Fix word-choice error.

* Also make fixes in concept:numbers:introduction.md and exercises:freelancer-rates:introduction.md

* Fix `NESButtons` typo (#779)

* Fix `NESButtons` typo

Just a little typo in the enum name.

* fix other mentions of `NESButtons`

* Bump actions/checkout from 4.2.0 to 4.2.2 (#775)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@d632683...11bd719)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [New Exercise]: Armstrong Numbers (#708)

* Add Armstrong Numbers exercise

* Add author

* [Armstrong number]: Fix formatting (#783)

* Fix formatting

* Fix

* [New Exercise]: Darts (#707)

* Add Darts exercise

* Add author

* Fix

* Sync exercise to problem spec

* Update CI configuration and add Swift Numerics dependency (#806)

* Update CI configuration and add Swift Numerics dependency

* Check if swift6 is available in macos 15

* Remove obsolete LinuxMain.swift and XCTestManifests.swift files from various exercises (#812)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: András B Nagy <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Shaver <[email protected]>
meatball133 added a commit that referenced this pull request Dec 25, 2024
* Sync docs and metadata (#771)

* Bump actions/checkout from 4.1.7 to 4.2.0 (#772)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@692973e...d632683)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix avogadro constant (#777)

* Update about.md (#778)

* Update about.md

Fix word-choice error.

* Also make fixes in concept:numbers:introduction.md and exercises:freelancer-rates:introduction.md

* Fix `NESButtons` typo (#779)

* Fix `NESButtons` typo

Just a little typo in the enum name.

* fix other mentions of `NESButtons`

* Bump actions/checkout from 4.2.0 to 4.2.2 (#775)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@d632683...11bd719)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [New Exercise]: Armstrong Numbers (#708)

* Add Armstrong Numbers exercise

* Add author

* [Armstrong number]: Fix formatting (#783)

* Fix formatting

* Fix

* [New Exercise]: Darts (#707)

* Add Darts exercise

* Add author

* Fix

* Sync exercise to problem spec

* Update CI configuration and add Swift Numerics dependency (#806)

* Update CI configuration and add Swift Numerics dependency

* Check if swift6 is available in macos 15

* Remove obsolete LinuxMain.swift and XCTestManifests.swift files from various exercises (#812)

* Remove redundant test cases from MagicianInTrainingTests (#814)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: András B Nagy <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Shaver <[email protected]>
meatball133 added a commit that referenced this pull request Dec 25, 2024
* Update generator to swift 6.0

* Use beta versio

* Update to use swift 6 formatter

* Remove macos version mention

* Set minimum macOS version to 12 in Package.swift

* Sync branch (#809)

* Sync docs and metadata (#771)

* Bump actions/checkout from 4.1.7 to 4.2.0 (#772)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@692973e...d632683)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix avogadro constant (#777)

* Update about.md (#778)

* Update about.md

Fix word-choice error.

* Also make fixes in concept:numbers:introduction.md and exercises:freelancer-rates:introduction.md

* Fix `NESButtons` typo (#779)

* Fix `NESButtons` typo

Just a little typo in the enum name.

* fix other mentions of `NESButtons`

* Bump actions/checkout from 4.2.0 to 4.2.2 (#775)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@d632683...11bd719)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [New Exercise]: Armstrong Numbers (#708)

* Add Armstrong Numbers exercise

* Add author

* [Armstrong number]: Fix formatting (#783)

* Fix formatting

* Fix

* [New Exercise]: Darts (#707)

* Add Darts exercise

* Add author

* Fix

* Sync exercise to problem spec

* Update CI configuration and add Swift Numerics dependency (#806)

* Update CI configuration and add Swift Numerics dependency

* Check if swift6 is available in macos 15

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: András B Nagy <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Shaver <[email protected]>

* Remove uneeded import

* Sync (#813)

* Sync docs and metadata (#771)

* Bump actions/checkout from 4.1.7 to 4.2.0 (#772)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@692973e...d632683)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix avogadro constant (#777)

* Update about.md (#778)

* Update about.md

Fix word-choice error.

* Also make fixes in concept:numbers:introduction.md and exercises:freelancer-rates:introduction.md

* Fix `NESButtons` typo (#779)

* Fix `NESButtons` typo

Just a little typo in the enum name.

* fix other mentions of `NESButtons`

* Bump actions/checkout from 4.2.0 to 4.2.2 (#775)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@d632683...11bd719)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [New Exercise]: Armstrong Numbers (#708)

* Add Armstrong Numbers exercise

* Add author

* [Armstrong number]: Fix formatting (#783)

* Fix formatting

* Fix

* [New Exercise]: Darts (#707)

* Add Darts exercise

* Add author

* Fix

* Sync exercise to problem spec

* Update CI configuration and add Swift Numerics dependency (#806)

* Update CI configuration and add Swift Numerics dependency

* Check if swift6 is available in macos 15

* Remove obsolete LinuxMain.swift and XCTestManifests.swift files from various exercises (#812)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: András B Nagy <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Shaver <[email protected]>

* Sync (#815)

* Sync docs and metadata (#771)

* Bump actions/checkout from 4.1.7 to 4.2.0 (#772)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@692973e...d632683)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix avogadro constant (#777)

* Update about.md (#778)

* Update about.md

Fix word-choice error.

* Also make fixes in concept:numbers:introduction.md and exercises:freelancer-rates:introduction.md

* Fix `NESButtons` typo (#779)

* Fix `NESButtons` typo

Just a little typo in the enum name.

* fix other mentions of `NESButtons`

* Bump actions/checkout from 4.2.0 to 4.2.2 (#775)

Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@d632683...11bd719)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [New Exercise]: Armstrong Numbers (#708)

* Add Armstrong Numbers exercise

* Add author

* [Armstrong number]: Fix formatting (#783)

* Fix formatting

* Fix

* [New Exercise]: Darts (#707)

* Add Darts exercise

* Add author

* Fix

* Sync exercise to problem spec

* Update CI configuration and add Swift Numerics dependency (#806)

* Update CI configuration and add Swift Numerics dependency

* Check if swift6 is available in macos 15

* Remove obsolete LinuxMain.swift and XCTestManifests.swift files from various exercises (#812)

* Remove redundant test cases from MagicianInTrainingTests (#814)

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: András B Nagy <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Shaver <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: András B Nagy <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Shaver <[email protected]>
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