about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 300
Copyright Nick Parlante 2017 - privacy