re: Tackling Algorithms: Counting Unique Values VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

... and a lazy solution would be to use underscorejs:

_.uniq([1, 1, 1, 2, 3, 3]).length; //=> 3
code of conduct - report abuse