id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

norm.krumpe@muohio.edu > mode3
prev  |  next  |  chance

The mode of a set of numbers is the number that occurs most frequently. Given 3 positive integers, return the mode of those integers. If there is no mode (each value occurs exactly once), return -1.


mode3(4, 7, 4) → 4
mode3(4, 4, 4) → 4
mode3(1, 2, 3) → -1

...Save, Compile, Run (ctrl-enter)

int mode3(int a, int b, int c) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 100

Copyright Nick Parlante 2017 - privacy