Add Modular Arithmetic approach to RaindropConverter#3144
Open
habere-et-dispertire wants to merge 10 commits into
Open
Add Modular Arithmetic approach to RaindropConverter#3144habere-et-dispertire wants to merge 10 commits into
habere-et-dispertire wants to merge 10 commits into
Conversation
kahgoh
requested changes
Jun 23, 2026
Refactor switch statement to use enhanced switch expression syntax. Note similarity to Fizz Buzz.
jagdish-15
requested changes
Jun 24, 2026
jagdish-15
left a comment
Member
There was a problem hiding this comment.
You'll also need to create a dedicated directory for this approach inside the .approaches folder and register it in .approaches/config.json.
You can refer to the existing approaches for the expected structure and configuration.
Add content for modular arithmetic approach in RaindropConverter.
Updated the reference link for the modular arithmetic approach in the introduction section.
Author
|
I've made the changes suggested, created the folder structure and mimicked the other approaches. 🤝 |
kahgoh
requested changes
Jun 25, 2026
| [remainder-operator]: https://www.geeksforgeeks.org/modulo-or-remainder-operator-in-java/ | ||
| [approach-if-statements]: https://exercism.org/tracks/java/exercises/raindrops/approaches/if-statements | ||
| [approach-map]: https://exercism.org/tracks/java/exercises/raindrops/approaches/map | ||
| [approach-modulus]: https://exercism.org/tracks/java/exercises/raindrops/approaches/modulus |
Member
There was a problem hiding this comment.
The last part of the URL should match the slug in the config
Suggested change
| [approach-modulus]: https://exercism.org/tracks/java/exercises/raindrops/approaches/modulus | |
| [approach-modulus]: https://exercism.org/tracks/java/exercises/raindrops/approaches/modular-arithmetic |
Author
There was a problem hiding this comment.
Should be okay now no (since I changed the slug) ?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
This looks a little more visual in
rakuwith multi-dispatch supporting built-in types:I think it's a fun way to explore deeper into a generalized mathematical approach since it shows that this approach works also with a change in factors so long as they remain co-prime.
Reviewer Resources:
Track Policies