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

Java-Nerdery-ChallengeV2/Luis-Moroco #6

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

luismoroco
Copy link

@luismoroco luismoroco commented Nov 22, 2024

The mandatory challenges and the extra challenge were solved.

As for the extra challenge, you must download the .json file from the web and set the ExtraChallenges.FILE_PATH for it to run.

Comment on lines +124 to +126
for (int j = 1; j <= i; ++j) {
ownPower = ownPower.multiply(BigInteger.valueOf(i));
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Use pow (or modPow if using modulo-based solution)

Comment on lines +22 to +23
if (parser.nextToken() == JsonToken.START_ARRAY) {
while (parser.nextToken() != JsonToken.END_ARRAY) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why are we parsing the list like this?

@quebin31
Copy link
Collaborator

Why are we using reflection?

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