Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

183
Views
Finding out the most repeated and least repeated numbers with javascript

I have an array as below, what I want to do is find the most repeated numbers and the least repeated numbers. but the array is according to the array index number

output hot = [5,3,2,6,4] output cold = [1,4,11,30,30]

const numbers = [1, 2, 3, 2, 4, 5, 5, 6, 5, 9, 3, 3, 5, 5, 6, 11,30, 20];
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!