def remove_duplicates(nums)
nums.uniq!
return nums.length
end
First, use uniq! to remove all the duplicates in nums. Then return its length...
For further actions, you may consider blocking this person and/or reporting abuse
Interesting... And it's fast...