Daily challenge for 2025-12-09
343. Count Distinct Elements
Given an array of integers nums, return the count of distinct (unique) elements in the array.
Example:Input: nums = [1,2,2,3,1,4]Output: 4
Explanation: The distinct elements are 1, 2, 3, and 4.
Run this challenge interactively in Python or JavaScript when the app loads.