about | help | code help+videos | done | prefs |
Given a non-empty array of integers, count how many unique values appear in that array. Solve this without modifying the given array or creating a new array. uniqueCount([4, 7, 4]) → 2 uniqueCount([3, 5, 3, 5]) → 2 uniqueCount([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