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

Improvement to mode algorithm #206

Closed
nchinling opened this issue Apr 20, 2024 · 3 comments
Closed

Improvement to mode algorithm #206

nchinling opened this issue Apr 20, 2024 · 3 comments

Comments

@nchinling
Copy link

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?

Copy link

stale bot commented Jun 20, 2024

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.

@sharara6
Copy link
Contributor

sharara6 commented Dec 4, 2024

i will be working on this can you assign me please ?

sharara6 added a commit to sharara6/30-seconds-of-java that referenced this issue Dec 6, 2024
@iluwatar iluwatar moved this from Todo to In Progress in Java Design Patterns project Dec 8, 2024
@sharara6
Copy link
Contributor

Dear @iluwatar may you check my PR?

iluwatar pushed a commit that referenced this issue Jan 11, 2025
* fix: Improvement to mode algorithm #206

* Fixed checkstyle errors

* Fixed checkstyle errors

* Added Code to Read Me file
@github-project-automation github-project-automation bot moved this from In Progress to Done in Java Design Patterns project Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants