iluwatar / 30-seconds-of-java

Collection of reusable tested Java 17 compatible code snippets that you can understand in 30 seconds or less.
https://java-design-patterns.com/snippets.html
MIT License
1.04k stars 409 forks source link

Find mode of integer array #207

Open GerardluqueDev opened 6 months ago

GerardluqueDev commented 6 months ago

I see that the code does not handle the possibility of no number repetition nor does it handle the possibility of multiple numbers having the same repetition, which could result in multiple modes. If it is interesting, I could work on the code to add handling for these two possibilities. Thank you

stale[bot] commented 4 months ago

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.