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

 

norm.krumpe@muohio.edu program11 > singlesCount
prev  |  next  |  chance

Given a non-empty array of integers, count how many of the values appear exactly one time in the array. Solve this without modifying the given array or creating a new array.


singlesCount([4, 7, 4]) → 1
singlesCount([3, 5, 3, 5]) → 0
singlesCount([4, 1, 9]) → 3

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

int singlesCount(int[] nums) { }

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: 300

Copyright Nick Parlante 2017 - privacy