Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Calculate the mode correctly, return the 'maximum' value in case of multiple modes.#96

Open
Megh-Thakkar wants to merge 2 commits intomain from
fix-mode-calculation
Open

Calculate the mode correctly, return the 'maximum' value in case of multiple modes. #96
Megh-Thakkar wants to merge 2 commits intomain from
fix-mode-calculation

Conversation

@Megh-Thakkar
Copy link
Collaborator

@Megh-Thakkar Megh-Thakkar commented Aug 25, 2025

#94

Copy link
Collaborator Author

@aldro61 aldro61 self-requested a review August 27, 2025 14:56
Copy link
Collaborator

@aldro61 aldro61 left a comment

Choose a reason for hiding this comment

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

@Megh-Thakkar for the cheat function, it's ok to use the max value as tiebreaker and just use the largest of the modes. However, for the validation function, we must accept any value that is a valid mode. You should move it to its one condition case, just like max/min and make sure you allow any number that is a valid mode.

@aldro61 aldro61 mentioned this pull request Sep 28, 2025
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@aldro61 aldro61 aldro61 requested changes

Requested changes must be addressed to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /