-
-
Notifications
You must be signed in to change notification settings - Fork 421
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
Improvement to mode algorithm #206
Labels
Comments
This issue has been automatically marked as stale because it has not had recent activity. The issue will be unassigned if no further activity occurs. Thank you for your contributions. |
i will be working on this can you assign me please ? |
Dear @iluwatar may you check my PR? |
iluwatar
pushed a commit
that referenced
this issue
Jan 11, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue description:
The current implementation to find the mode returns only one mode value. If there are more than one modes, it prints only the first mode value.
It is possible to have multiple modes given a list of numbers:
E.g.
{2, 2, 17, 2, 16 16, 15, 16}
The modes are 2 and 16.
I would like to work on this. Can you assign this issue to me?
The text was updated successfully, but these errors were encountered: